You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm currently doing a custom renderer for a project of zine generator from Markdown, and I've encountered an issue regarding whitespace management. Specifically, I would like to prevent Goldmark from automatically trimming whitespace at the beginning and end of each line in a markdown document because i need them for ANSI/ASCII art in my zine.
After looking through the documentation and the code, I haven't found a clear way to disable this trimming behavior without doing a new parser. Is there an existing option or workaround that would allow me to retain leading and trailing whitespace on each line as-is ?
The goal here is to ensure that whitespace-sensitive formatting is preserved, which is especially relevant for specific text-based content I’m working with.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, I'm currently doing a custom renderer for a project of zine generator from Markdown, and I've encountered an issue regarding whitespace management. Specifically, I would like to prevent Goldmark from automatically trimming whitespace at the beginning and end of each line in a markdown document because i need them for ANSI/ASCII art in my zine.
After looking through the documentation and the code, I haven't found a clear way to disable this trimming behavior without doing a new parser. Is there an existing option or workaround that would allow me to retain leading and trailing whitespace on each line as-is ?
The goal here is to ensure that whitespace-sensitive formatting is preserved, which is especially relevant for specific text-based content I’m working with.
Beta Was this translation helpful? Give feedback.
All reactions