Make whitespace trimming optional
Closed this issue · 4 comments
Had an issue where leading whitespace in my <pre></pre>
code blocks where removed. Would suggest to make the trimming an option removeWhitespace
that is true
by default but can be overwritten.
@mpseidel Of course! That's a good example. Maybe, it should be trimRight
by default. Probably I didn't think at the pre
stuff when I wrote that piece of code. 😁
Make it trimRight
by default would solve my problem. Could add an option whitespace
with otions trimRight
, trim
for the current impl and none
?
I would say trimRight would be enough. It's just to remove the trailing
spaces (if any), so the markdown output is clean. This should be true
, by
default, but can be overridden.
On Mon, Aug 29, 2016 at 11:47 AM, Michael Seidel notifications@github.com
wrote:
Make it trimRight by default would solve my problem. Could add an option
whitespace with otions trimRight, trim for the current impl and none ?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#25 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACu0845YQVNrDL-cmXOPoDWlsCtF69FZks5qkpyqgaJpZM4JvP1c
.
I replaced trim
with trimRight
. If you find any limitations for this one, let me know. I'm going to close this issue for now.