Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
docs: Update README for katexRenderOptions
Tony Narlock8a9e20eb4591
diff --git a/README.md b/README.mdindex 8811631dcf..0e5dff673f 100644--- a/README.md+++ b/README.md@@ -115,7 +115,8 @@ InlineEditor.defaultConfig = {forceOutputType: false, // forces output to use outputTypeenablePreview: true, // Enable preview viewpreviewClassName: [], // Class names to add to previews- popupClassName: [] // Class names to add to math popup balloon+ popupClassName: [], // Class names to add to math popup balloon+ katexRenderOptions: {} // KaTeX only options for katex.render(ToString)}}```@@ -135,6 +136,22 @@ InlineEditor.defaultConfig = {[<img src="https://katex.org/img/katex-logo-black.svg" width="130" alt="KaTeX">](https://katex.org/)+- `katexRenderOptions` - pass [options](https://katex.org/docs/options.html).++ ```js+ InlineEditor.defaultConfig = {+ // ...+ math: {+ engine: 'katex'+ katexRenderOptions: {+ macros: {+ "\\neq": "\\mathrel{\\char`≠}",+ },+ },+ }+ }+ ```+**Custom typesetting**Custom typesetting is possible to implement with engine config. For example, custom typesetting feature can be used when use back end rendering.