Skip to content

Creating info boxes in markdown #10520

Answered by jgm
naranek asked this question in Q&A
Jan 10, 2025 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

It would be easy to create a filter that makes a table from a BlockQuote.

function BlockQuote(el)
  return pandoc.utils.from_simple_table(
    pandoc.SimpleTable( {}, {"AlignLeft"}, {1.0}, {}, {{el.content}} )
  )
end

Probably better to use a fenced Div with a class instead, if you might need block quotes for their original purposes sometimes....

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@naranek
Comment options

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