인용 블록 색상과 라이브 설정 패널 정리
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { isImageUrl, parseImageMarkdownLine } from './markdown-image.js'
|
||||
import { CALLOUT_BACKGROUND_OPTIONS, parseCalloutOptions } from './markdown-callout.js'
|
||||
import { CALLOUT_BACKGROUND_OPTIONS, QUOTE_BACKGROUND_OPTIONS, parseCalloutOptions } from './markdown-callout.js'
|
||||
import { parseCodeFenceLine } from './markdown-code-block.js'
|
||||
import { parseToggleOpenerLine } from './markdown-toggle.js'
|
||||
|
||||
@@ -114,7 +114,7 @@ const parseQuoteOptionsLine = (value) => {
|
||||
const [key, rawOptionValue] = token.split('=')
|
||||
const optionValue = String(rawOptionValue || '').trim()
|
||||
|
||||
if (key?.toLowerCase() === 'bg' && CALLOUT_BACKGROUND_OPTIONS.includes(optionValue)) {
|
||||
if (key?.toLowerCase() === 'bg' && QUOTE_BACKGROUND_OPTIONS.includes(optionValue)) {
|
||||
quoteBackground = optionValue
|
||||
}
|
||||
})
|
||||
@@ -151,7 +151,7 @@ const resolveQuoteBlock = (lines, currentLine) => {
|
||||
kind: 'quote',
|
||||
startLine,
|
||||
endLine,
|
||||
quoteBackground: quoteOptions?.quoteBackground || 'pink',
|
||||
quoteBackground: quoteOptions?.quoteBackground || 'gray',
|
||||
hasQuoteOptions: Boolean(quoteOptions)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user