Skip to content

fenced_divs with preformatted text (source code) #10489

Answered by jgm
lifeisfoo asked this question in Q&A
Discussion options

You must be logged in to vote

From the manual:

If you define a div or span with the attribute custom-style,
pandoc will apply your specified style to the contained elements (with
the exception of elements whose function depends on a style, like
headings, code blocks, block quotes, or links).

In Word, everything (except a table) is a paragraph; headings and code blocks and block quotes just differ in style. That's why we don't apply custom styles to code blocks.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@lifeisfoo
Comment options

@jgm
Comment options

jgm Dec 23, 2024
Maintainer

Comment options

You must be logged in to vote
3 replies
@lifeisfoo
Comment options

@jgm
Comment options

jgm Dec 24, 2024
Maintainer

@jgm
Comment options

jgm Dec 24, 2024
Maintainer

Answer selected by lifeisfoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants