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
Code block render tab incorrectly #120
Comments
That's controlled by the internal library used for syntax highlighting called Prism. Probably this plugin could help with configuring that aspect of it. |
Thanks @simov, Do you know if it is possible to imbed JavaScript code in MK. According to the link, I need to put the following code in but it didn't seem to work.
|
First you need to include the plugin with a For example see how I'm including MathJax in the content script. So in your case it have to be: dom.push(m('script', {
src: 'https://the-prism-plugin.js'
}))
dom.push(m('script', `
Prism.plugins.NormalizeWhitespace.setDefaults({
'tabs-to-spaces': 4,
});
`)) And then you have to load the extension from your local fork instead. Of course I can't tell with 100% certainty that it is going to work, but worth a try. |
Thanks @simov, I will look into forking the code. I am setting vim with expandtab so that my team mates don't have to load my forked plugging. |
The tab character is render as 4 spaces instead of 8.
Here is the test code block:
The following how it is rendered:
The expect the result is:
Thanks very much in advance
Albert
The text was updated successfully, but these errors were encountered: