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
I never thought about preserving tabs while manipulating AST via the convenience method markdown=. I suppose switching that property on by default shouldn't have a negative impact on paru's functioning. But I'll have to look into that to make sure.
Can you given an example where preserving tabs is important?
In my blog, I use tabs in code blocks and use tab-size in CSS to conveniently change tab size without needing to touch the source files of the articles.
I also wrote a Pandoc filter to transform a code block into some HTML. Whether I use HTML tags directly in Markdown or use raw blocks, the tabs will be converted to 4 spaces. I have to turn on --preserve-tabs.
For example, to make the tab characters being preserved when using
Paru::PandocFilter::Node#markdown=
, I have toThis is kind of a hack. What is the correct way to do this?
The text was updated successfully, but these errors were encountered: