Skip to content

Commit 9782cfe

Browse files
authored
Markup & JSON: Added new aliases (#2390)
This adds the `rss` and `atom` alias for Markup and the `webmanifest` alias for JSON.
1 parent 4935b5c commit 9782cfe

11 files changed

+24
-7
lines changed

components.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components.json

+8-2
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,15 @@
4848
},
4949
"markup": {
5050
"title": "Markup",
51-
"alias": ["html", "xml", "svg", "mathml", "ssml"],
51+
"alias": ["html", "xml", "svg", "mathml", "ssml", "atom", "rss"],
5252
"aliasTitles": {
5353
"html": "HTML",
5454
"xml": "XML",
5555
"svg": "SVG",
5656
"mathml": "MathML",
57-
"ssml": "SSML"
57+
"ssml": "SSML",
58+
"atom": "Atom",
59+
"rss": "RSS"
5860
},
5961
"option": "default"
6062
},
@@ -560,6 +562,10 @@
560562
},
561563
"json": {
562564
"title": "JSON",
565+
"alias": "webmanifest",
566+
"aliasTitles": {
567+
"webmanifest": "Web App Manifest"
568+
},
563569
"owner": "CupOfTea696"
564570
},
565571
"jsonp": {

components/prism-json.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ Prism.languages.json = {
1717
alias: 'keyword'
1818
}
1919
};
20+
21+
Prism.languages.webmanifest = Prism.languages.json;

components/prism-json.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/prism-markup.js

+2
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,5 @@ Prism.languages.svg = Prism.languages.markup;
103103

104104
Prism.languages.xml = Prism.languages.extend('markup', {});
105105
Prism.languages.ssml = Prism.languages.xml;
106+
Prism.languages.atom = Prism.languages.xml;
107+
Prism.languages.rss = Prism.languages.xml;

components/prism-markup.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/autoloader/prism-autoloader.js

+3
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@
151151
"svg": "markup",
152152
"mathml": "markup",
153153
"ssml": "markup",
154+
"atom": "markup",
155+
"rss": "markup",
154156
"js": "javascript",
155157
"g4": "antlr4",
156158
"adoc": "asciidoc",
@@ -169,6 +171,7 @@
169171
"xls": "excel-formula",
170172
"gamemakerlanguage": "gml",
171173
"hs": "haskell",
174+
"webmanifest": "json",
172175
"tex": "latex",
173176
"context": "latex",
174177
"ly": "lilypond",

plugins/autoloader/prism-autoloader.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/show-language/prism-show-language.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"svg": "SVG",
1818
"mathml": "MathML",
1919
"ssml": "SSML",
20+
"rss": "RSS",
2021
"css": "CSS",
2122
"clike": "C-like",
2223
"js": "JavaScript",
@@ -89,6 +90,7 @@
8990
"js-extras": "JS Extras",
9091
"js-templates": "JS Templates",
9192
"json": "JSON",
93+
"webmanifest": "Web App Manifest",
9294
"jsonp": "JSONP",
9395
"json5": "JSON5",
9496
"latex": "LaTeX",

0 commit comments

Comments
 (0)