Capability first · transport second

Marked.min.js

Vendored Marked 18.0.5 Markdown lexer, parser, renderer, extension, and walk-token API.

SDK 0.5.18Runtime 0.8.12Protocol arcane/1
On this page

Overview

Vendored Marked 18.0.5 Markdown lexer, parser, renderer, extension, and walk-token API.

  • Artifact
    Marked.min.js · esm
  • Classification
    vendor
  • Availability
    Cross-host vendor module
  • Normalization
    Vendor-native Marked contract.

Import and lifecycle

JavaScript
import * as module from '/arcane/modules/Marked.min.js';

ESM initialization only; later setOptions() and use() calls mutate the module-scoped vendor singleton.

Application-facing behavior: Twenty named/default-style Marked exports; see bundled license notice.

Protocol and host implementation

In-process only This detail does not widen the application-facing API or grant authority.

Exports, signatures, parameters, and results

BindingFormDeclaration or signatureParameter syntax
Hooksalias · classclass
Lexeralias · classclass l
Markedalias · classclass
Parseralias · classclass l
Rendereralias · classclass
TextRendereralias · classclass
Tokenizeralias · classclass
defaultsalias · valueT as defaults
getDefaultsalias · functionfunction M()
lexeralias · valueYt as lexer
markedalias · functionfunction g(l,e)l,e
optionsalias · valueFt as options
parsealias · valueJt as parse
parseInlinealias · valueXt as parseInline
parseralias · valueVt as parser
setOptionsalias · valueUt as setOptions
usealias · valueKt as use
walkTokensalias · valueWt as walkTokens
MemberKindExact public declarationParameter syntax
P.constructorconstructorconstructor(e)e
P.optionsfieldoptions;
P.blockfieldblock;
P.passThroughHooksstatic fieldstatic passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);
P.passThroughHooksRespectAsyncstatic fieldstatic passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);
l.constructorconstructorconstructor(e)e
l.tokensfieldtokens;
l.optionsfieldoptions;
l.statefieldstate;
l.inlineQueuefieldinlineQueue;
l.tokenizerfieldtokenizer;
q.constructorconstructorconstructor(...e)...e
q.defaultsfielddefaults=M();
q.optionsfieldoptions=this.setOptions;
q.parsefieldparse=this.parseMarkdown(!0);
q.parseInlinefieldparseInline=this.parseMarkdown(!1);
q.ParserfieldParser=b;
q.RendererfieldRenderer=y;
q.TextRendererfieldTextRenderer=L;
q.LexerfieldLexer=x;
q.TokenizerfieldTokenizer=w;
q.HooksfieldHooks=P;
l.constructorconstructorconstructor(e)e
l.optionsfieldoptions;
l.rendererfieldrenderer;
l.textRendererfieldtextRenderer;
y.constructorconstructorconstructor(e)e
y.optionsfieldoptions;
y.parserfieldparser;
w.constructorconstructorconstructor(e)e
w.optionsfieldoptions;
w.rulesfieldrules;
w.lexerfieldlexer;
w.spacemethodspace(e)e
w.codemethodcode(e)e
w.fencesmethodfences(e)e
w.headingmethodheading(e)e
w.hrmethodhr(e)e
w.blockquotemethodblockquote(e)e
w.listmethodlist(e)e
w.htmlmethodhtml(e)e
w.defmethoddef(e)e
w.tablemethodtable(e)e
w.lheadingmethodlheading(e)e
w.paragraphmethodparagraph(e)e
w.textmethodtext(e)e
w.escapemethodescape(e)e
w.tagmethodtag(e)e
w.linkmethodlink(e)e
w.reflinkmethodreflink(e,t)e,t
w.emStrongmethodemStrong(e,t,n="")e,t,n=""
w.codespanmethodcodespan(e)e
w.brmethodbr(e)e
w.delmethoddel(e,t,n="")e,t,n=""
w.autolinkmethodautolink(e)e
w.urlmethodurl(e)e
w.inlineTextmethodinlineText(e)e
l.rulesstatic getstatic get rules()
l.lexstatic methodstatic lex(e,t)e,t
l.lexInlinestatic methodstatic lexInline(e,t)e,t
l.lexmethodlex(e)e
l.blockTokensmethodblockTokens(e,t=[],n=!1)e,t=[],n=!1
l.inlinemethodinline(e,t=[])e,t=[]
l.inlineTokensmethodinlineTokens(e,t=[])e,t=[]
l.infiniteLoopErrormethodinfiniteLoopError(e)e
y.spacemethodspace(e)e
y.codemethodcode({text:e,lang:t,escaped:n}){text:e,lang:t,escaped:n}
y.blockquotemethodblockquote({tokens:e}){tokens:e}
y.htmlmethodhtml({text:e}){text:e}
y.defmethoddef(e)e
y.headingmethodheading({tokens:e,depth:t}){tokens:e,depth:t}
y.hrmethodhr(e)e
y.listmethodlist(e)e
y.listitemmethodlistitem(e)e
y.checkboxmethodcheckbox({checked:e}){checked:e}
y.paragraphmethodparagraph({tokens:e}){tokens:e}
y.tablemethodtable(e)e
y.tablerowmethodtablerow({text:e}){text:e}
y.tablecellmethodtablecell(e)e
y.strongmethodstrong({tokens:e}){tokens:e}
y.emmethodem({tokens:e}){tokens:e}
y.codespanmethodcodespan({text:e}){text:e}
y.brmethodbr(e)e
y.delmethoddel({tokens:e}){tokens:e}
y.linkmethodlink({href:e,title:t,tokens:n}){href:e,title:t,tokens:n}
y.imagemethodimage({href:e,title:t,text:n,tokens:s}){href:e,title:t,text:n,tokens:s}
y.textmethodtext(e)e
L.strongmethodstrong({text:e}){text:e}
L.emmethodem({text:e}){text:e}
L.codespanmethodcodespan({text:e}){text:e}
L.delmethoddel({text:e}){text:e}
L.htmlmethodhtml({text:e}){text:e}
L.textmethodtext({text:e}){text:e}
L.linkmethodlink({text:e}){text:e}
L.imagemethodimage({text:e}){text:e}
L.brmethodbr()
L.checkboxmethodcheckbox({raw:e}){raw:e}
l.parsestatic methodstatic parse(e,t)e,t
l.parseInlinestatic methodstatic parseInline(e,t)e,t
l.parsemethodparse(e)e
l.parseInlinemethodparseInline(e,t=this.renderer)e,t=this.renderer
P.preprocessmethodpreprocess(e)e
P.postprocessmethodpostprocess(e)e
P.processAllTokensmethodprocessAllTokens(e)e
P.emStrongMaskmethodemStrongMask(e)e
P.provideLexermethodprovideLexer(e=this.block)e=this.block
P.provideParsermethodprovideParser(e=this.block)e=this.block
q.walkTokensmethodwalkTokens(e,t)e,t
q.usemethoduse(...e)...e
q.setOptionsmethodsetOptions(e)e
q.lexermethodlexer(e,t)e,t
q.parsermethodparser(e,t)e,t
q.parseMarkdownmethodparseMarkdown(e)e
q.onErrormethodonError(e,t)e,t
g.optionsstatic assigned-methodfunction(l)l
g.setOptionsstatic assigned-methodfunction(l)l
g.usestatic assigned-methodfunction(...l)...l
g.walkTokensstatic assigned-methodfunction(l,e)l,e

Parameter meanings and results

Marked 18.0.5 vendor contract: Hooks, Lexer, Marked, Parser, Renderer, TextRenderer, Tokenizer, defaults, getDefaults, lexer, marked, options, parse, parseInline, parser, setOptions, use, and walkTokens. parse(source,options?) returns HTML or the vendor async result.

Events, side effects, and errors

Source-literal CustomEvent dispatches

No source-literal CustomEvent dispatch is part of this artifact.

Lifecycle and event flow

This artifact has no additional documented lifecycle event flow.

Direct coded failures

This artifact directly assigns no stable coded failure.

Exported Error subclasses

This artifact exports no Error subclass.

Documented failure behavior

  • Vendor-native Marked exceptions.

Availability and capabilities

Cross-host vendor module. Vendor-native Marked contract.

None.

Contract example

JavaScript
import {marked} from '/arcane/modules/Marked.min.js';

console.log(marked.parse('# Ready'));

No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.