레거시 본문 저장 형식 정규화
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
<script setup>
|
||||
import { normalizeMarkdownContent } from '../../lib/markdown-content-normalizer.js'
|
||||
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
type: String,
|
||||
type: [String, Array, Object],
|
||||
default: ''
|
||||
}
|
||||
})
|
||||
@@ -30,7 +32,7 @@ const imageWidthOptions = [
|
||||
]
|
||||
|
||||
const markdownValue = computed({
|
||||
get: () => props.modelValue || '',
|
||||
get: () => normalizeMarkdownContent(props.modelValue),
|
||||
set: (value) => emit('update:modelValue', value)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user