-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Double dash formatting could confuse users #923
Comments
If you add marked:
autolink: false
smartypants: false However, that's kinda nuclear: it turns off SmartyPants processing for the entire site.
I dunno that there's all that many occurrences of the above markdown that is transformed by SmartyPants; I know that I've been explicitly adding There's the tactical approach where SmartyPants is turned off which is appealing because it can be done right now and stops users possibly getting confused. Downside is that the sweet typography goes away... which I'm not sure is all that big a deal when compared to removing a source of possible confusion. Then there's the strategic approach which is to keep SmartyPants turned on but sort out why it's FoJangledZor in the Thoughts?
😄 |
From smartypants docs, it shouldn't format anything in code blocks like this example is.
Honestly, I'm not seeing a lot of benefit from SmartyPants. It's very much not worth having actual code flags rendering incorrectly. I would turn off SmartyPants Still, yes, there is likely something not being handled correctly in our note blocks that this just puts a bandaid over. |
when I turn off smartypants, I get an |
Yeah 😢 With SmartyPants turned off completely it means that the anchors aren't processed. Anchors with I've submitted a PR that tactically addresses this. The PR doesn't close this issue 'cos I'll look to solve the problem at source. |
I've submitted a PR to the I dunno if the PR will be accepted, but if it is:
OMG the tension on this important issue itt iz srs bsnss 😰😝 |
That fix has been released. I'll test it locally to see if it fixes this issue and, if so, then I'll create a PR to address it and revert the earlier tactical fix... but later this week, possibly next weekend 'cos I'm proper busy at the mo'. https://github.com/markedjs/marked/releases/tag/v0.5.1 |
Thanks @richdouglasevans |
In an info box, the theme seems to combine two dashes into one, turning
--record
into-record
which can confuse people.The text was updated successfully, but these errors were encountered: