Merge pull request #316 from japborst/gh-pages Added initial LaTeX support
diff --git a/components.js b/components.js
index 0527635..b630e79 100644
--- a/components.js
+++ b/components.js
@@ -174,6 +174,10 @@ var components = {
"ini": {
"title": "Ini",
"owner": "aviaryan"
+ },
+ "latex": {
+ "title": "LaTeX",
+ "owner": "japborst"
}
},
"plugins": {
diff --git a/components/prism-latex.js b/components/prism-latex.js
new file mode 100644
index 0000000..c8902f6
--- /dev/null
+++ b/components/prism-latex.js
@@ -0,0 +1,6 @@
+Prism.languages.latex = {
+ 'comment': /%.*?(\r?\n|$)$/m,
+ 'string': /(\$)(\\?.)*?\1/g,
+ 'punctuation': /[{}]/g,
+ 'selector': /\\[a-z;,:\.]*/i
+}
\ No newline at end of file