These are chat archives for wooorm/remark

26th
Sep 2017
Titus
@wooorm
Sep 26 2017 15:51
Sorry, away busy working for a few days!
Well, we’re talking about your last question on GH already (thank for making the PR)
Re your first: depends on what settings you’re passing remark I think
Could you provide your code set-up?
a_b_ is emphasis in pedantic markdown, yes
Shawn Erquhart
@erquhart
Sep 26 2017 16:18
What I've found is that, with underlines, Remark disregards whether a word boundary exists at the beginning of an emphasis node, and also whether a word boundary exists on either side of a bold node.
Which means:
# emphasized
_a_b
a__b__c

# not emphasized
a_b_
This is using commonmark without pedantic mode, btw.
In the commonmark dingus, none of these examples are emphasized.
Titus
@wooorm
Sep 26 2017 16:37
Ah, yes that’s the pedantic part! In "pedantic" mode (e.g., markdown defined originally) underscores form emphasis and importance in text
It’s one of its "features"
Shawn Erquhart
@erquhart
Sep 26 2017 16:52
But I have pedantic turned off.
Titus
@wooorm
Sep 26 2017 20:09
Oh I read that as if you had pedantic on, sorry
Weird!
Seems GH changed that since adopting a flavour of markdown close to commonmark, instead of their own flavour, too...
Shawn Erquhart
@erquhart
Sep 26 2017 20:50
GH doesn't use GH markdown anymore? :p
I already worked around it in my implementation, doesn't seem to bother folks based on the lack of issues.