@plurnk/plurnk-mimetypes-text-markdown
v1.3.2
Published
text/markdown mimetype handler for plurnk-service.
Readme
@plurnk/plurnk-mimetypes-text-markdown
text/markdown mimetype handler for the plurnk ecosystem.
install
npm i @plurnk/plurnk-mimetypes-text-markdownplurnk-service discovers this handler automatically via its plurnk.kind: "mimetype" declaration.
what it extracts
Two symbol kinds via marked's lexer:
- Headings — ATX (
# Title) and setext (Title\n=====), every depth, withlevel1-6. - Fenced code blocks — emitted as
modulesymbols named by their language tag (orcodewhen no language), with line range covering the full fence.
Everything else (paragraphs, lists, links, inline code, blockquotes, tables) is content, not structure — not emitted.
validate() is a no-op: any string is valid markdown.
development
npm install
npm run build
npm testlicense
MIT.
