URL's with underscores in them
-
https://twitter.com/__Stiglitz__/status/893448812471169024
https://twitter.com/Stiglitz/status/893448812471169024
<a href="https://twitter.com/__Stiglitz__/status/893448812471169024">https://twitter.com/__Stiglitz__/status/893448812471169024</a>
https://twitter.com/Stiglitz/status/893448812471169024
<a href="https://twitter.com/__Stiglitz__/status/893448812471169024">https://twitter.com/\_\_Stiglitz__/status/893448812471169024</a>
-
@julianlam - not sure NodeBB's entirely to blame, since try.nodebb.com doesn't even try to onebox - @ben_lubar, is this iFramely not parsing correctly, or NodeBB getting in the way by processing the underscores?
-
@pjh said in URL's with underscores in them:
NodeBB getting in the way by processing the underscores
The first example seems to say that's the problem. I'd have to look, but plugins tell NodeBB their priority and I'd presume the markdown processing happens before iFramely.
-
For reference, the output on try.nodebb.com:
-
Hmm - final one..
https://twitter.com/\_\_Stiglitz__/status/893448812471169024
-
@boomzilla said in URL's with underscores in them:
I'd have to look, but plugins tell NodeBB their priority and I'd presume the markdown processing happens before iFramely.
pjh@hpdesktop:~/src$ grep "hook.*priority" nodebb-plugin-markdown nodebb-plugin-iframely -r --colorcolor nodebb-plugin-markdown/plugin.json: { "hook": "filter:parse.post", "method": "parsePost", "priority": 5 }, nodebb-plugin-markdown/plugin.json: { "hook": "filter:parse.signature", "method": "parseSignature", "priority": 5 }, nodebb-plugin-markdown/plugin.json: { "hook": "filter:parse.raw", "method": "parseRaw", "priority": 5 }, pjh@hpdesktop:~/src$
iframely
presumably using the default of 10.
-
@pjh Yep.
-
What about the correct one:
<https://twitter.com/__Stiglitz__/status/893448812471169024>
-
This is not a NodeBB bug. NodeBB is following the CommonMark spec.
-
@ben_lubar LOL, I like how these didn't even try:
Maruku 0.7.3.beta1
Maruku (Math-Enabled) 0.7.3.beta1
Gambas 3.8.90<p>https://twitter.com/__Stiglitz__/status/893448812471169024</p>
-