-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
mdash, ndash, strikethrough #16
Comments
You're correct, the parser manages to distinguish between dashes and the opening of a strikethrough section, but it struggles to distinguish an mdash from a closing strikethrough section. The resulting restriction of not being able to use ndashes and mdashes within a strikethrough section doesn't seem to onerous to me, and I'd be inclined to leave it like this. What do you think? |
I'd ask myself: "When is ndash, mdash used?"
I'd also ask: "When is strikethrough used?"
According to wikipedia [3] "ndash Spacing" section, having n-mdash will allways conflict with strikethrough detection because:
Conclusion:
I know that this is a compatibility issue, but as you said: TW5 should be a 100 times more popular than TW2. Imo a good migration path (plugin/SPA) can handle this. Imo the above can create better html5 code [4] if done right. @FND @cdent @bengillies what do you think? [1] http://wikicreole.org/wiki/Creole1.0 |
OK, I think you might have a point: that strikethrough is mainly used for marking text during review, and that the syntax isn't really very useful for this. Strikethrough also seems to be widely used to indicate something that has been completed. I'm not a fan of the Hmmm. Would it be madness to have:
Four dashes is rather a lot, but it does allow us to keep the markup looking intuitive, and there's your very reasonable argument that strikethrough is rare in narrative text. UPDATE: I forgot about the |
Is it important to have both en and em dashes? In my experience it is the em dash that people are actually after. So one option is:
|
I could live with the |
These seem of relevance here: http://www.tbray.org/ongoing/When/201x/2010/12/30/How-To-Dash I seems that there are distinct use cases for each, though I agree I think the ambiguity is in telling the difference between a-b : hyphen Ben |
I'm not sure about this:
because if what do I need to do, if I exactly have to write "a - b" including the spaces and a hyphen not a em dash. |
I just thought, I'm crazy to start this topic (again) but having a look at the media wiki sites [1][2] they have even more possibilities that make sense. So it's not a waste of time. TeX [3] uses [1] http://en.wikipedia.org/wiki/MOS:DASH#Dashes |
I agree with cdent that mdash ( FWIW, GitHub Flavored Markdown uses |
Sorry for the delay. I've just committed a revised emphasis parser rule that uses |
If you copy the following source to a TW5 tiddler you'll see what I mean:
The text was updated successfully, but these errors were encountered: