添加rehype-mathjax对公式和流程的支持

This commit is contained in:
2025-08-11 00:21:33 +08:00
parent 6d965ccd40
commit 6c061b1e58
13 changed files with 1172 additions and 33 deletions

View File

@@ -49,6 +49,6 @@ const primaryHex = computed(() => {
const h2Style = computed(() => ({
backgroundColor: primaryHex.value,
borderRadius: 'var(--ui-card-radius)',
borderRadius: 'var(--ui-card-radius)'
}))
</script>

View File

@@ -25,5 +25,4 @@ const themeSizeClass = computed(() => {
? 'text-xl lg:text-1xl'
: 'text-1xl lg:text-2xl'
})
</script>

View File

@@ -1,7 +1,7 @@
<template>
<h5
:id
:class="['scroll-m-20 font-bold text-primary tracking-tight [&:not(:first-child)]:mt-6',themeSizeClass]"
:class="['scroll-m-20 font-bold text-primary tracking-tight [&:not(:first-child)]:mt-6', themeSizeClass]"
>
<NuxtLink
v-if="id && generate"
@@ -25,5 +25,4 @@ const themeSizeClass = computed(() => {
? 'text-lg lg:text-xl'
: 'text-xl lg:text-1xl'
})
</script>

View File

@@ -1,7 +1,7 @@
<template>
<h5
:id
:class="['scroll-m-20 font-normal text-primary tracking-tight [&:not(:first-child)]:mt-6',themeSizeClass]"
:class="['scroll-m-20 font-normal text-primary tracking-tight [&:not(:first-child)]:mt-6', themeSizeClass]"
>
<NuxtLink
v-if="id && generate"
@@ -25,5 +25,4 @@ const themeSizeClass = computed(() => {
? 'text-lg lg:text-xl'
: 'text-xl lg:text-1xl'
})
</script>

View File

@@ -1,5 +1,5 @@
<template>
<strong class="text-primary">
<slot />
</strong>
</template>
<strong class="text-primary">
<slot />
</strong>
</template>

View File

@@ -1,8 +1,8 @@
<template>
<table>
<slot />
</table>
</template>
<table>
<slot />
</table>
</template>
<!-- <style scoped>
/* 强化表头背景,仅此组件内生效 */
@@ -12,4 +12,4 @@ table :deep(thead th) {
.dark table :deep(thead th) {
background-color: rgba(255, 255, 255, 0.08);
}
</style> -->
</style> -->

View File

@@ -1,5 +1,5 @@
<template>
<th class=" bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 py-2">
<slot />
</th>
</template>
<th class=" bg-gray-100 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 py-2">
<slot />
</th>
</template>

View File

@@ -1,5 +1,5 @@
<template>
<thead>
<slot />
</thead>
</template>
<thead>
<slot />
</thead>
</template>