Skip to content
Discussion options

You must be logged in to vote

Applying this to Pandoc's output did the trick

def post_process(data):
            data = re.sub(r"\s+\\\[\s+\\begin{tikzcd}", r"\n\\[\n\\begin{tikzcd}", data)
            data = re.sub(r"\\end{tikzcd}\s+\\]\s+", r"\\end{tikzcd}\n\\]\n", data)
            return data

Replies: 2 comments 22 replies

Comment options

You must be logged in to vote
22 replies
@jgm
Comment options

jgm Aug 25, 2025
Maintainer

@jgm
Comment options

jgm Aug 25, 2025
Maintainer

@madsmh
Comment options

@jgm
Comment options

jgm Aug 26, 2025
Maintainer

@jgm
Comment options

jgm Aug 26, 2025
Maintainer

Comment options

You must be logged in to vote
0 replies
Answer selected by madsmh
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