마크다운 표와 리스트 렌더링 개선
This commit is contained in:
@@ -21,7 +21,10 @@ const props = defineProps({
|
||||
|
||||
const segmentLines = computed(() => {
|
||||
const source = String(props.text || '')
|
||||
const lines = props.multiline ? source.split('\n') : [source]
|
||||
const normalizedSource = props.multiline
|
||||
? source.replace(/<br\s*\/?>/gi, '\n')
|
||||
: source
|
||||
const lines = props.multiline ? normalizedSource.split('\n') : [normalizedSource]
|
||||
return lines.map(parseInlineSegments)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user