2 Commits

Author SHA1 Message Date
44315b324a 0.1.12 2023-05-09 21:53:51 -07:00
20cc517802 fix regexes 2023-05-09 21:53:43 -07:00
3 changed files with 13 additions and 13 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "@doc-utils/markdown2html", "name": "@doc-utils/markdown2html",
"version": "0.1.11", "version": "0.1.12",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@doc-utils/markdown2html", "name": "@doc-utils/markdown2html",
"version": "0.1.11", "version": "0.1.12",
"dependencies": { "dependencies": {
"bytefield-svg": "^1.6.1", "bytefield-svg": "^1.6.1",
"dompurify": "^2.3.6", "dompurify": "^2.3.6",

View File

@@ -1,6 +1,6 @@
{ {
"name": "@doc-utils/markdown2html", "name": "@doc-utils/markdown2html",
"version": "0.1.11", "version": "0.1.12",
"publishConfig": { "publishConfig": {
"registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/" "registry": "https://gitea.home.jbrumond.me/api/packages/doc-utils/npm/"
}, },

View File

@@ -92,16 +92,16 @@ const shape_fill_regex = {
const arrow_head_regex: Record<CSSVarColor, RegExp> = { const arrow_head_regex: Record<CSSVarColor, RegExp> = {
black: /fill:rgb\(0,0,0\)/gi, black: /fill:rgb\(0,0,0\)/gi,
red: /fill:rgb\(255,0,0\)/gi, red: /fill:rgb\(255,0,0\)/gi,
orange: /fill:rgb:\(255,165,0\)/gi, orange: /fill:rgb\(255,165,0\)/gi,
yellow: /fill:rgb:\(255,255,0\)/gi, yellow: /fill:rgb\(255,255,0\)/gi,
green: /fill:rgb:\(0,128,0\)/gi, green: /fill:rgb\(0,128,0\)/gi,
teal: /fill:rgb:\(0,128,128\)/gi, teal: /fill:rgb\(0,128,128\)/gi,
pink: /fill:rgb:\(255,192,203\)/gi, pink: /fill:rgb\(255,192,203\)/gi,
purple: /fill:rgb:\(128,0,128\)/gi, purple: /fill:rgb\(128,0,128\)/gi,
blue: /fill:rgb:\(0,0,255\)/gi, blue: /fill:rgb\(0,0,255\)/gi,
indigo: /fill:rgb:\(75,0,130\)/gi, indigo: /fill:rgb\(75,0,130\)/gi,
magenta: /fill:rgb:\(255,0,255\)/gi, magenta: /fill:rgb\(255,0,255\)/gi,
brown: /fill:rgb:\(165,42,42\)/gi, brown: /fill:rgb\(165,42,42\)/gi,
}; };
const line_css_vars: Record<CSSVarColor, string> = { const line_css_vars: Record<CSSVarColor, string> = {