Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep tabs in code blocks #646

Open
Tam opened this issue Jan 24, 2019 · 0 comments
Open

Keep tabs in code blocks #646

Tam opened this issue Jan 24, 2019 · 0 comments
Assignees

Comments

@Tam
Copy link

Tam commented Jan 24, 2019

Is there an way to keep tabs in code blocks, rather than have them convert to spaces?

I'm currently doing the following, but I'd really prefer being able to configure it rather than hack around it!

this._converter.makeHtml(
    markdown.replace(/\t/g, '_XYZZY_TAB_')
).replace(/_XYZZY_TAB_/g, '\t');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants