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

Allow custom-style atttributes for inline elements in OpenDocument / ODT writer #9657

Closed
iandol opened this issue Apr 14, 2024 · 0 comments
Closed

Comments

@iandol
Copy link
Contributor

iandol commented Apr 14, 2024

In the manual it states that:

Custom styles can be used in the docx and ICML formats - https://pandoc.org/MANUAL.html#custom-styles

And there is an open issue to add it for ODT: #2106

However, for block-level div elements there is already support for custom-style for OpenDocument. This was added in commit a2ce28f — adding the custom-style to the XML element like so:

::: {custom-style="Comment"}
Text here...
:::
<text:p text:style-name="Comment">Text here...</text:p>

For inline spans the property is identical, and so I suspect the code change should be straightforward:

[Text here...]{custom-style="Strikethrough"}
<text:span text:style-name="Strikeout">Text here...</text:span>

@jgm suggested:

I don't think it would be too hard to add support for inline custom-styles. We'd need to modify the TextStyle to have a constructor like Custom Text.

See the discussion #9656 for context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant