Skip to content

Instantly share code, notes, and snippets.

@ollpu

ollpu/test.md Secret

Last active August 16, 2023 12:40
Show Gist options
  • Save ollpu/2b0e18b8fe20d76b97d9e89912f4df3e to your computer and use it in GitHub Desktop.
Save ollpu/2b0e18b8fe20d76b97d9e89912f4df3e to your computer and use it in GitHub Desktop.
Inline math behvaior tests
text and $math broken
into multiple lines$

renders as

text and $math broken into multiple lines$

(agrees with Pandoc)


text and $
math starting with a newline$

renders as

text and $ math starting with a newline$

(agrees with Pandoc)


text and $math
ending with a newline
$

renders as

text and $math ending with a newline $

(Pandoc doesn't parse as math)


text and $math with \
escaped newline$

renders as

text and $math with
escaped newline$

(Pandoc parses as math)


text and$math surroundend by$it

renders as

text and$math surroundend by$it

(Pandoc parses as math)

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