You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var hljs =require('highlight.js') // https://highlightjs.org/
65
+
66
+
// Actual default values
67
+
var md =newRemarkable({
68
+
highlight:function (str, lang) {
69
+
if (lang &&hljs.getLanguage(lang)) {
70
+
try {
71
+
returnhljs.highlight(lang, str).value;
72
+
} catch (err) {}
73
+
}
74
+
75
+
try {
76
+
returnhljs.highlightAuto(str).value;
77
+
} catch (err) {}
78
+
79
+
return''; // use external default escaping
80
+
}
81
+
});
82
+
```
83
+
62
84
63
85
And that's all ...
64
86
This is an **extremely simple and basic** guide. To understand a lot better this kind of dark magic called markdown, logically I recommend the official wiki of the creator. Go, run, jump to [the site of John Gruber](http://daringfireball.net/projects/markdown/).
0 commit comments