Skip to content

Commit

Permalink
BBCode: Added "shortcode" alias (#2273)
Browse files Browse the repository at this point in the history
This adds a "shortcode" alias to BBCode to support Wordpress' ShortCode.
  • Loading branch information
mccomaschris committed Mar 26, 2020
1 parent 2d4c94c commit 57eebce
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@
},
"bbcode": {
"title": "BBcode",
"alias": "shortcode",
"aliasTitles": {
"shortcode": "Shortcode"
},
"owner": "RunDevelopment"
},
"bison": {
Expand Down
2 changes: 2 additions & 0 deletions components/prism-bbcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ Prism.languages.bbcode = {
}
}
};

Prism.languages.shortcode = Prism.languages.bbcode;
2 changes: 1 addition & 1 deletion components/prism-bbcode.min.js

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

1 change: 1 addition & 0 deletions plugins/autoloader/prism-autoloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
"g4": "antlr4",
"adoc": "asciidoc",
"shell": "bash",
"shortcode": "bbcode",
"rbnf": "bnf",
"conc": "concurnas",
"cs": "csharp",
Expand Down
2 changes: 1 addition & 1 deletion plugins/autoloader/prism-autoloader.min.js

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

1 change: 1 addition & 0 deletions plugins/show-language/prism-show-language.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"shell": "Bash",
"basic": "BASIC",
"bbcode": "BBcode",
"shortcode": "BBcode",
"bnf": "Backus–Naur form",
"rbnf": "Routing Backus–Naur form",
"conc": "Concurnas",
Expand Down
2 changes: 1 addition & 1 deletion plugins/show-language/prism-show-language.min.js

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

0 comments on commit 57eebce

Please sign in to comment.