0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-06 05:42:40 +00:00

CodeMirror Dropdown working

This commit is contained in:
Trevor Buckner
2024-04-12 14:12:30 -04:00
parent 61a4b558a8
commit b0c2521101
5 changed files with 72 additions and 4 deletions

View File

@@ -10,8 +10,6 @@ const MathParser = require('expr-eval').Parser;
const renderer = new Marked.Renderer();
const tokenizer = new Marked.Tokenizer();
console.log(dicefont)
//Limit math features to simple items
const mathParser = new MathParser({
operators : {
@@ -624,8 +622,8 @@ function MarkedVariables() {
const MarkedEmojiOptions = {
emojis: {
...dicefont,
"heart": "fa-solid fa-heart",
"star": "fa-solid fa-star"
"fas-heart": "fa-solid fa-heart",
"fas-star": "fa-solid fa-star"
},
renderer: (token) => `<i class="${token.emoji}"></i>`
};