@coding-blocks/showdown-katex
Advanced tools
Changelog
0.4.0 2017-01-10
window.katexLatex
to window.showdownKatex
add inline latex examples
add inline asciimath examples
remove &&
as a delimiter for asciimath in displayMode. it was giving too mouch trouble. For asciimath in displayMode, use code block style with the lang set to asciimath
. so:
&& E=mc^2 &&
becomes
```asciimath
E=mc^2
```
update references to katex-latex
in files and showdown extension and update to showdown-katex
if previously using global config, it should now be passed to the global showdownKatex
function which returns a showdown extension that can be passed as part of the extensions
array
// before
window.katexLatex.config = {
throwOnError: true,
};
// now
const converter = new showdown.Converter({
extensions: [showdownKatex({
throwOnError: true,
})]
});
converter.makeHtml('~x=2~')
if not using custom config, just list "showdown-katex"
in the extensions