Skip to content

Commit aa5dfeb

Browse files
committed
fix(ui): article markdown correct render
1 parent 69a3b6a commit aa5dfeb

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

bun.lockb

1.91 KB
Binary file not shown.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"devDependencies": {
2222
"@nuxtjs/seo": "^2.0.0-rc.10",
2323
"@nuxtjs/tailwindcss": "^6.12.0",
24+
"@tailwindcss/typography": "^0.5.13",
2425
"@unocss/nuxt": "^0.60.0"
2526
},
2627
"trustedDependencies": [

pages/[...slug].vue

+10-9
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,29 @@
44
<Roadmap />
55
<div v-if="content" :class="['fixed top-0 h-screen', sidebarClass]">
66
<div
7-
class="top-0 flex h-full w-full flex-col items-center bg-white p-4 focus:outline-0 sm:p-6"
7+
class="top-0 flex overflow-y-auto overflow-x-none h-full w-full flex-col items-center bg-white p-4 focus:outline-0 sm:p-6"
88
>
9-
<div class="w-full flex flex-row justify-between px-4 pb-2">
9+
<div class="w-full flex flex-row justify-between text-black px-4 pb-2">
1010
<span>[TODO] Status</span>
1111
<span class="hover:cursor-pointer" @click="closeSidebar">X</span>
1212
</div>
1313
<ContentRenderer :key="content._id" :value="content">
14-
<ContentRendererMarkdown class="flex flex-col gap-3 text-black overscroll-x-none overflow-y-auto w-full m:max-w-[800px] sm:max-w-[600px]" :value="content" />
14+
<ContentRendererMarkdown class="prose flex flex-col w-full m:max-w-[800px] sm:max-w-[600px]" tag="article" :value="content" />
1515
<div class="flex flex-col items-start w-full m:max-w-[800px] sm:max-w-[600px]">
1616
<h4 id="related-content" class="text-black mb-3">
1717
<a href="#related-content">Contenido Extra Relacionado</a>
1818
</h4>
19-
<Card
20-
moreTransparency
19+
<a
2120
class="gap-x-2 mb-1"
2221
v-for="(link, i) in content.data.externalLinks"
2322
:key="i"
2423
:href="link.link"
25-
>
26-
<strong v-if="link.english">[Contenido en Ingles]</strong>
27-
{{link.name}}
28-
</Card>
24+
>
25+
<Card moreTransparency >
26+
<strong v-if="link.english">[Contenido en Ingles]</strong>
27+
{{link.name}}
28+
</Card>
29+
</a>
2930
</div>
3031
</ContentRenderer>
3132
</div>

tailwind.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3+
plugins: [
4+
require('@tailwindcss/typography'),
5+
],
36
theme: {
47
fontFamily: {
58
"alfa-slab": ["Alfa Slab One", "sans-serif"],

0 commit comments

Comments
 (0)