Skip to content

Commit 0030a4e

Browse files
RunDevelopmentmAAdhaTTah
authored andcommitted
Decouple XML from Markup (#1603)
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.
1 parent 2ce0666 commit 0030a4e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/prism-markup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Prism.hooks.add('wrap', function(env) {
5050
}
5151
});
5252

53-
Prism.languages.xml = Prism.languages.markup;
53+
Prism.languages.xml = Prism.languages.extend('markup', {});
5454
Prism.languages.html = Prism.languages.markup;
5555
Prism.languages.mathml = Prism.languages.markup;
5656
Prism.languages.svg = Prism.languages.markup;

components/prism-markup.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prism.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ Prism.hooks.add('wrap', function(env) {
603603
}
604604
});
605605

606-
Prism.languages.xml = Prism.languages.markup;
606+
Prism.languages.xml = Prism.languages.extend('markup', {});
607607
Prism.languages.html = Prism.languages.markup;
608608
Prism.languages.mathml = Prism.languages.markup;
609609
Prism.languages.svg = Prism.languages.markup;

0 commit comments

Comments
 (0)