docs: Add migrating to Tailwind CSS page (#2077)

This commit is contained in:
Marvin Hagemeister
2023-11-28 13:39:05 +01:00
committed by GitHub
parent 9ee6ab72e0
commit 79fd85ef93
4 changed files with 142 additions and 1 deletions
+3
View File
@@ -521,6 +521,9 @@
.gfm-highlight .token.keyword {
color: var(--color-prettylights-syntax-keyword);
}
.highlight .atrule .rule {
color: var(--color-prettylights-syntax-keyword);
}
.markdown-body .highlight .token.tag .token.class-name,
.markdown-body .highlight .token.tag .token.script .token.punctuation,
.gfm-highlight .token.tag .token.class-name,
+1 -1
View File
@@ -67,7 +67,7 @@ class DefaultRenderer extends Marked.Renderer {
// format: tsx "This is my title"
let lang = "";
let title = "";
const match = info?.match(/^(\w+)\s*(.*)?$/);
const match = info?.match(/^([\w_-]+)\s*(.*)?$/);
if (match) {
lang = match[1].toLocaleLowerCase();
title = match[2] ?? "";