Markdown
Markdown는 Markdown을 문서 내용으로 추가합니다. # 제목은 수준에 따라 중첩된 섹션이 되며, 단락, 목록, 표, 코드 블록, 인용문, --- 구분선, {#id} 그림을 포함할 수 있습니다. 제목과 수식에는 id를 지정할 수 있습니다: ## Results {#results}, \[ E = mc^2 \] {#eq-energy}.
<KScript.Document title="From Markdown" to="'notes.pdf'">
<Markdown path="chapters/introduction.md" />
<Markdown>
## Summary
- Every chapter is a Markdown file.
- The script puts them together.
</Markdown>
</KScript.Document>import KScript.Document
Document(title: 'From Markdown', to: 'notes.pdf') {
Markdown(path: 'chapters/introduction.md')
Markdown "
## Summary
- Every chapter is a Markdown file.
- The script puts them together.
"
}Markdown 파일에서는 $x$와 $$ ... $$도 수식으로 처리됩니다. 스크립트 안의 텍스트에서는 \( \)와 \[ \]를 사용하세요. $는 그곳에서 변수이기 때문입니다.