Leskov Oleg 5 hari lalu
induk
melakukan
fc13a0bda2
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      app/app.coffee
  2. 1 1
      app/pages/Home.pug

+ 1 - 0
app/app.coffee

@@ -24,6 +24,7 @@ globalThis.app = Vue.createApp
     name: 'app'
     data: () ->
         return {
+            marked: marked
             appState:
                 currentDocument: null
                 currentLanguage: 'ru'

+ 1 - 1
app/pages/Home.pug

@@ -9,6 +9,6 @@ block top-content
 block content
     div(class="max-w-4xl mx-auto px-4" v-if="document")
         h1(class="text-3xl font-bold text-contrast-high animate-fade-in-up") {{ document.translations[_.appState.currentLanguage]?.title || document.translations.en.title }}
-        div(class="prose mt-6 animate-fade-in-up" v-html="marked.parse(document.translations[_.appState.currentLanguage]?.content || document.translations.en.content)")
+        div(class="prose mt-6 animate-fade-in-up" v-html="_.marked.parse(document.translations[_.appState.currentLanguage]?.content || document.translations.en.content)")
         div(class="mt-12")
             image-gallery(:images="document.translations[_.appState.currentLanguage]?.gallery || document.translations.en.gallery")