From df9e03c1488eab4819f8b051be3c2ac65e64a2e9 Mon Sep 17 00:00:00 2001 From: David de la Iglesia Castro Date: Thu, 27 Jan 2022 22:12:01 +0100 Subject: [PATCH] dvctable: Add `violet` for `dep` columns. --- config/prismjs/dvctable.js | 9 +++++++++ .../Documentation/Markdown/Main/styles.module.css | 5 +++++ 2 files changed, 14 insertions(+) diff --git a/config/prismjs/dvctable.js b/config/prismjs/dvctable.js index 1db6373aae..4121762144 100644 --- a/config/prismjs/dvctable.js +++ b/config/prismjs/dvctable.js @@ -49,6 +49,15 @@ Prism.languages.dvctable = { ...boldAndItalicConfig } }, + 'bg-violet': { + pattern: getTableTextBgColorRegex('(violet|dep)'), + inside: { + hide: { + pattern: /(violet|dep):/ + }, + ...boldAndItalicConfig + } + }, ...boldAndItalicConfig } } diff --git a/src/components/Documentation/Markdown/Main/styles.module.css b/src/components/Documentation/Markdown/Main/styles.module.css index 25c61707fb..274aad58a4 100644 --- a/src/components/Documentation/Markdown/Main/styles.module.css +++ b/src/components/Documentation/Markdown/Main/styles.module.css @@ -234,6 +234,11 @@ color: #000; background-color: #d7feff; } + + .token.bg-violet { + color: #000; + background-color: #d7afff; + } } pre[class*="language-dvctable"] {