Skip to content

Commit

Permalink
Decouple XML from Markup (#1603)
Browse files Browse the repository at this point in the history
Decouple the XML language from the Markup language so that
changes to `markup` do not affect `xml`. The `style` and `script`
tags added by CSS and JS modify `markup` but not `xml`.

Resolves #1597.

---

We can't test this because the XML language is not in its own file.
  • Loading branch information
RunDevelopment authored and mAAdhaTTah committed Jan 23, 2019
1 parent 2ce0666 commit 0030a4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/prism-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Prism.hooks.add('wrap', function(env) {
}
});

Prism.languages.xml = Prism.languages.markup;
Prism.languages.xml = Prism.languages.extend('markup', {});
Prism.languages.html = Prism.languages.markup;
Prism.languages.mathml = Prism.languages.markup;
Prism.languages.svg = Prism.languages.markup;
2 changes: 1 addition & 1 deletion components/prism-markup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ Prism.hooks.add('wrap', function(env) {
}
});

Prism.languages.xml = Prism.languages.markup;
Prism.languages.xml = Prism.languages.extend('markup', {});
Prism.languages.html = Prism.languages.markup;
Prism.languages.mathml = Prism.languages.markup;
Prism.languages.svg = Prism.languages.markup;
Expand Down

0 comments on commit 0030a4e

Please sign in to comment.