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

fix hilighting of YAML keys on first line of code block #943

Merged
merged 1 commit into from
Apr 29, 2016

Conversation

larsks
Copy link
Contributor

@larsks larsks commented Apr 29, 2016

The YAML highlighter would fail to highlight a key if it occurred on
the first line of a <code> block, as in:

<pre><code>somekey: somevalue
anotherkey: anothervalue</pre></code>

This adds "beginning of file" as an acceptable marker for the start of
a key.

Resolves #942 and, it turns out, #649.

The YAML highlighter would fail to highlight a key if it occurred on
the first line of a `<code>` block, as in:

    <pre><code>somekey: somevalue
    anotherkey: anothervalue</pre></code>

This adds "beginning of file" as an acceptable marker for the start of
a key.

Resolves PrismJS#942 and, it turns out, PrismJS#649.
@LeaVerou LeaVerou merged commit d25047d into PrismJS:gh-pages Apr 29, 2016
@LeaVerou
Copy link
Member

Thanks, merged!

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

Successfully merging this pull request may close these issues.

None yet

2 participants