We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d954b95 commit 795b892Copy full SHA for 795b892
scripts/md2html/md2html.js
@@ -48,6 +48,31 @@ hljs.registerLanguage('uri', function() {
48
],
49
}
50
});
51
+hljs.registerLanguage('multipart', function() {
52
+ return {
53
+ // This is a very limited approach that only
54
+ // detects boundaries and headers that start
55
+ // with "Content-"
56
+ contains: [
57
+ {
58
+ scope: "meta",
59
+ match: /^--.*$/,
60
+ },
61
62
+ scope: "literal",
63
+ begin: /^Content-/,
64
+ end: /$/,
65
66
67
+ scope: "attr",
68
+ begin: " ",
69
70
71
+ ]
72
73
+ ],
74
+ }
75
+ });
76
hljs.registerLanguage('eventstream', function() {
77
return {
78
contains: [
0 commit comments