-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Syntax highlighting implementation for OpenDocument/ODT output #6710
Comments
Pull Request is prepared as #6711 . |
so far, so good! |
Thank you for merging! and sorry for bothering you by my PRs... Except above styles name issue, objectives of updates are noted in #6717 (comment) . Because styles will be updated from Writer/ODT.hs, this update does not contain styles file. But my local work (I put style file by my hand.), this code works as similar to docx's Is this breaking change (to be Please let me know if you have any opinions. Thanks, |
I'm not sure I really understand what you're asking here. Can you explain again? |
We still aren't injecting the style, but this will improve things. See #6710.
Currently only colors are supported, not other text styles. This change includes a new default opendocumnet template. See #6710.
Hi,
I would like to use Pandoc's ODT output like a Docx output as much as possible. Syntax highlighting is one of missing feature of ODT output.
From an advice from pandoc-discuss, I update Writer/OpenDocument.hs to implement syntax highlighting for ODT. Its code are based on Docx's one. Thank you for the advice.
I will send a PR and I would appreciate if someone review it.
But, there are several steps to implement syntax highlighting for ODT output. I did only first part of followings.
Code
ofWriter/OpenDocument.hs
for highlightingCodeBlock
ofWriter/OpenDocument.hs
for highlighting (with changing paragraph structure like a docx style)Writer/ODT.hs
for generating styles into style.xml from skylighting.ODT's CodeBlock has a different structure from Docx's CodeBlock. For implementing highlighting for CodeBlock, structure of paragraphs should be changed to Docx's structure (
CodeBlock
will be converted toCode
s inside ofPara
)Highlighting styles from skylighting should be generated automatically and it should be incorporated into styles.xml. To implement it,
Writer/ODT.hs
need to havestyleToOpenDocument
based on Docx'sstyleToOpenXml
.I will continue implement aboves. Please let me know if you have any opinions.
Thanks,
niszet
The text was updated successfully, but these errors were encountered: