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
+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] ?? "";