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

File tree

11 files changed

+24
-7
lines changed

11 files changed

+24
-7
lines changed

components.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.

components.json

Lines changed: 8 additions & 2 deletions
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

Lines changed: 2 additions & 0 deletions
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

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

components/prism-markup.js

Lines changed: 2 additions & 0 deletions
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

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

plugins/autoloader/prism-autoloader.js

Lines changed: 3 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy