Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle "details" macro #55

Closed
osnard opened this issue Apr 12, 2022 · 2 comments
Closed

Handle "details" macro #55

osnard opened this issue Apr 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@osnard
Copy link
Member

osnard commented Apr 12, 2022

Source:

<ac:structured-macro ac:name="details" ac:schema-version="1" ac:macro-id="...">
	<ac:rich-text-body>
	<p class="auto-cursor-target">
	<br /></p>
	<table class="wrapped">
		<colgroup><col /><col /></colgroup>
		<tbody>
			<tr><th>Field 1</th><td>Value 1</td></tr>
			<tr><th>Field 2</th><td><div class="content-wrapper"><p><ac:structured-macro ac:name="status" ac:schema-version="1" ac:macro-id="fc045cc6-ca0f-4cba-815f-a3e95619713c"><ac:parameter ac:name="colour">Red</ac:parameter><ac:parameter ac:name="title">HIGH</ac:parameter></ac:structured-macro></p></div></td></tr>
			<tr><th>Field 3</th><td><div class="content-wrapper"><p><time datetime="2020-04-15" />&nbsp;</p></div></td></tr>
		</tbody>
	</table>
	<p class="auto-cursor-target"><br /></p>
	</ac:rich-text-body>
</ac:structured-macro>

Proposed output:

{{Details
|items=
{{Details/Item|Field 1|Value 1}}
{{Details/Item|Field 2|{{Status|color=Red|title=HIGH}}}}
{{Details/Item|Field 3|{{Datetime|2020-04-15}}}}
}}

SMW attributes should be used for meta data storage.

@osnard osnard added the enhancement New feature or request label Apr 12, 2022
@osnard
Copy link
Member Author

osnard commented Apr 12, 2022

Hint: "Details" macro can only contain a <table>. First and second column serve as Key/Value. Further columns are just custom text. Should still be preserved.

@osnard
Copy link
Member Author

osnard commented Dec 2, 2024

Duplicate of #101

@osnard osnard marked this as a duplicate of #55 Dec 2, 2024
@osnard osnard closed this as completed Dec 2, 2024
@osnard osnard marked this as a duplicate of #101 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant