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

Regex lib docs have stray green characters #3670

Closed
augiedb opened this issue Sep 4, 2015 · 6 comments
Closed

Regex lib docs have stray green characters #3670

augiedb opened this issue Sep 4, 2015 · 6 comments

Comments

@augiedb
Copy link
Contributor

augiedb commented Sep 4, 2015

Look at the code samples for Regex.split. They turn green halfway through the first example and don't return to black until the fifth.

Looks like it starts on the second forward slash on:

iex> Regex.split(~r/-/, "a-b-c")

and it carries through to the /a in the fifth example:

iex> Regex.split(~r/a(?<second>b)c/, "abc")

Then things go back to their normal black with quoted strings in red.

I can't figure out what's causing it. Are /, and /a some sort of special code that border green characters or something? I can't find it. Markdown? CSS? Haven't seen this pop up anywhere else...

@ericmj
Copy link
Member

ericmj commented Sep 4, 2015

This is a highlight.js issue that we use in ex_doc to highlight code. Please open an issue with them.

@eksperimental
Copy link
Contributor

It's probably the same issues as no. 3 in the list of existing issues for the elixir plugin in highlight.js
highlightjs/highlight.js#730
@augiedb You may want to add it, or I can update it later.

@eksperimental
Copy link
Contributor

I think this issues should be moved to https://github.com/elixir-lang/ex_doc/issues

@ericmj
Copy link
Member

ericmj commented Sep 5, 2015

Nothing we can do in elixir or ex_doc until highlight.js is fixed.

@ericmj ericmj closed this as completed Sep 5, 2015
@ericmj
Copy link
Member

ericmj commented Sep 5, 2015

@augiedb Thanks for the report

@josevalim
Copy link
Member

Invoking @knewter as I think he is the one who contributed to highlight.js. :D

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

No branches or pull requests

4 participants