KKcompany39 / gitiles

Automatically exported from code.google.com/p/gitiles
0 stars 0 forks source link

Double dash "--" is incorrectly changed to a hyphen &ndash #77

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Mark down file in gtiles with a **--text** (may require this in a header) 
results in a &ndash being output, instead of "--", which breaks searching for 
that text.

Ex:
https://code.google.com/p/chromium/codesearch#chromium/src/tools/gn/docs/referen
ce.md
"## **--args**: Specifies build arguments overrides."

Produces:
https://chromium.googlesource.com/chromium/src/+/master/tools/gn/docs/reference.
md
"–args: Specifies build arguments overrides."

But I expect:
"--args: Specifies build arguments overrides."

Original issue reported on code.google.com by scheib@chromium.org on 28 Apr 2015 at 8:35

GoogleCodeExporter commented 9 years ago
It's possible I might be able to work around this by escaping the dashes, e.g., 
\-- or some such. I'll do some testing to find out.

Original comment by dpranke@chromium.org on 28 Apr 2015 at 10:19

GoogleCodeExporter commented 9 years ago
Yes, but the double dash transformation appears to be an undesired markdown
transformation? I don't see that in spec anywhere, and it seems to be a
destructive presentation formatting change.

Original comment by scheib@chromium.org on 28 Apr 2015 at 10:25

GoogleCodeExporter commented 9 years ago
there is a lot of variation in markdown specs and implementations, and I 
believe there are a number of implementations that do automatically turn -- 
into –

Which isn't to say this is a bug, just that it's not a particularly surprising 
one if it is, and it would be understandable if it was the default behavior and 
considered not a bug (at least, for non-code blocks).

Original comment by dpranke@chromium.org on 28 Apr 2015 at 10:32

GoogleCodeExporter commented 9 years ago
It does look like escaping (at least) the first dash will disable the &ndashing.

Original comment by dpranke@chromium.org on 21 Jun 2015 at 5:01