markdown
| Kind | kit |
|---|---|
| Categories | parser text-processing web |
| Keywords | markdown html parser gfm commonmark |
Markdown parsing and HTML rendering for Kit
Files
| File | Description | |
|---|---|---|
.editorconfig | Editor formatting configuration | |
.gitignore | Git ignore rules for build artifacts and dependencies | |
.tool-versions | asdf tool versions (Zig, Kit) | |
LICENSE | MIT license file | |
README.md | This file | |
examples/basic.kit | Basic usage example | |
kit.toml | Package manifest with metadata and dependencies | |
src/markdown.kit | Note: This module uses Kit's standard Result type (Ok a | Err String). |
tests/markdown.test.kit | Tests for markdown |
Dependencies
No Kit package dependencies.
Installation
kit add gitlab.com/kit-lang/packages/kit-markdown.gitUsage
import Kit.MarkdownLicense
MIT License - see LICENSE for details.
Exported Functions & Types
to-html
Parse markdown and return HTML
String -> Result String
render
Render markdown to HTML, returning string directly (errors become empty)
String -> String
has-markdown?
Check if string contains markdown syntax (including GFM)
String -> Bool