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
Describe the feature
There may already be way of doing this, but I can’t find it.
Is it possible to get Marked not to replace tabs with spaces in fenced code?
Why is this feature necessary?
I use Marked in an Electron application to render markdown, and it does a brilliant job. However, I have no control over this feature, as far as I am aware.
Personally I prefer tabs, though I know some others don’t. For me, however, it makes copying code easier and formatting output easier if I can have the tabs.
Describe alternatives you've considered
I can undo the spaces using something like replace(/ /g,'\t');, but (a) that’s not 100% reliable, and (b) I think it would make more sense not to have to reverse a feature.
If the solution lies in a custom render function, I’m happy with that.
The text was updated successfully, but these errors were encountered:
Describe the feature
There may already be way of doing this, but I can’t find it.
Is it possible to get Marked not to replace tabs with spaces in fenced code?
Why is this feature necessary?
I use Marked in an Electron application to render markdown, and it does a brilliant job. However, I have no control over this feature, as far as I am aware.
Personally I prefer tabs, though I know some others don’t. For me, however, it makes copying code easier and formatting output easier if I can have the tabs.
Describe alternatives you've considered
I can undo the spaces using something like
replace(/ /g,'\t');
, but (a) that’s not 100% reliable, and (b) I think it would make more sense not to have to reverse a feature.If the solution lies in a custom render function, I’m happy with that.
The text was updated successfully, but these errors were encountered: