Markdown
Markdown fügt Markdown als Dokumentinhalt hinzu: # Überschriften werden zu Abschnitten (nach Ebene verschachtelt), mit Absätzen, Listen, Tabellen, Codeblöcken, Zitaten, --- Trennlinien und {#id} Abbildungen. Überschriften und Formeln können IDs erhalten: ## 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.
"
}In Markdown-Dateien sind $x$ und $$ ... $$ ebenfalls Mathematik. Im Text innerhalb eines Skripts verwende \( \) und \[ \], da $ dort eine Variable ist.