docs: Add migrating to Tailwind CSS page (#2077)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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] ?? "";
|
||||
|
||||
Reference in New Issue
Block a user