Skip to content
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 "--" is incorrectly changed to a hyphen &ndash #77

Open
GoogleCodeExporter opened this issue Oct 21, 2015 · 4 comments
Open

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant