코드 블록 설정 패널 UI 정리

This commit is contained in:
2026-07-24 17:00:33 +09:00
parent e8eaed6ff5
commit 540255512c
8 changed files with 104 additions and 50 deletions

View File

@@ -31,3 +31,38 @@ test('인용 옵션이 없는 블록 컨텍스트는 기본 배경을 사용한
hasQuoteOptions: false
})
})
test('아래쪽 코드 블록은 위의 리스트 줄 컨텍스트로 잡지 않는다', () => {
const markdown = [
':::gallery',
'![](/uploads/one.png)',
'![](/uploads/two.png)',
':::',
'',
':::callout emoji=none bg=blue',
'!!! 내용',
':::',
'',
'---',
'',
'',
'- 아아아',
'- 아아아아',
'- 아아아아',
'- 라라렘',
'',
'',
'```javascript',
'console.log("hello")',
'```'
].join('\n')
assert.equal(resolveActiveBlockContext(markdown, 15), null)
assert.deepEqual(resolveActiveBlockContext(markdown, 18), {
kind: 'code',
startLine: 18,
endLine: 20,
language: 'javascript',
showLineNumbers: false
})
})