mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-02 11:26:48 +00:00
fix(nc-gui): limit the number of blocks to render in rich text cell
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
import { marked } from 'marked'
|
||||
import type { AIRecordType } from 'nocodb-sdk'
|
||||
import { NcMarkdownParser } from '../../helpers/tiptap/markdown'
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue?: string | number
|
||||
@@ -159,9 +160,8 @@ const isRichMode = computed(() => {
|
||||
|
||||
const richTextContent = computed(() => {
|
||||
if (isRichMode.value && vModel.value) {
|
||||
return marked.parse(vModel.value)
|
||||
return NcMarkdownParser.parse(vModel.value, { maxBlockTokens: 10 }, true)
|
||||
}
|
||||
|
||||
return ''
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user