ui: support sep view for samples

This commit is contained in:
undefined committed 2021-05-04 20:12:15 +08:00
1 parent 6368d8103a
commit eca05dd2f0
6 files changed
+77 -27

No files matched your search

@@ -1,5 +1,4 @@
const MarkdownIt = require('markdown-it');
const Prism = require('prismjs');
// For math: $a\times b\eq 10$
// Specific image size: ![image](image.png =100x100)
@@ -31,14 +30,6 @@ class Markdown extends MarkdownIt {
constructor() {
super({
linkify: true,
highlight(str, lang) {
if (lang && Prism.languages[lang]) {
try {
return Prism.highlight(str, Prism.languages[lang], lang);
} catch (__) { }
}
return '';
},
});
this.linkify.tlds('.py', false);
this.use(Media);