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
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
| Binding | Form | Declaration or signature | Parameter syntax |
|---|---|---|---|
Hooks | alias · class | class | — |
Lexer | alias · class | class l | — |
Marked | alias · class | class | — |
Parser | alias · class | class l | — |
Renderer | alias · class | class | — |
TextRenderer | alias · class | class | — |
Tokenizer | alias · class | class | — |
defaults | alias · value | T as defaults | — |
getDefaults | alias · function | function M() | — |
lexer | alias · value | Yt as lexer | — |
marked | alias · function | function g(l,e) | l,e |
options | alias · value | Ft as options | — |
parse | alias · value | Jt as parse | — |
parseInline | alias · value | Xt as parseInline | — |
parser | alias · value | Vt as parser | — |
setOptions | alias · value | Ut as setOptions | — |
use | alias · value | Kt as use | — |
walkTokens | alias · value | Wt as walkTokens | — |
| Member | Kind | Exact public declaration | Parameter syntax |
|---|---|---|---|
P.constructor | constructor | constructor(e) | e |
P.options | field | options; | — |
P.block | field | block; | — |
P.passThroughHooks | static field | static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]); | — |
P.passThroughHooksRespectAsync | static field | static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]); | — |
l.constructor | constructor | constructor(e) | e |
l.tokens | field | tokens; | — |
l.options | field | options; | — |
l.state | field | state; | — |
l.inlineQueue | field | inlineQueue; | — |
l.tokenizer | field | tokenizer; | — |
q.constructor | constructor | constructor(...e) | ...e |
q.defaults | field | defaults=M(); | — |
q.options | field | options=this.setOptions; | — |
q.parse | field | parse=this.parseMarkdown(!0); | — |
q.parseInline | field | parseInline=this.parseMarkdown(!1); | — |
q.Parser | field | Parser=b; | — |
q.Renderer | field | Renderer=y; | — |
q.TextRenderer | field | TextRenderer=L; | — |
q.Lexer | field | Lexer=x; | — |
q.Tokenizer | field | Tokenizer=w; | — |
q.Hooks | field | Hooks=P; | — |
l.constructor | constructor | constructor(e) | e |
l.options | field | options; | — |
l.renderer | field | renderer; | — |
l.textRenderer | field | textRenderer; | — |
y.constructor | constructor | constructor(e) | e |
y.options | field | options; | — |
y.parser | field | parser; | — |
w.constructor | constructor | constructor(e) | e |
w.options | field | options; | — |
w.rules | field | rules; | — |
w.lexer | field | lexer; | — |
w.space | method | space(e) | e |
w.code | method | code(e) | e |
w.fences | method | fences(e) | e |
w.heading | method | heading(e) | e |
w.hr | method | hr(e) | e |
w.blockquote | method | blockquote(e) | e |
w.list | method | list(e) | e |
w.html | method | html(e) | e |
w.def | method | def(e) | e |
w.table | method | table(e) | e |
w.lheading | method | lheading(e) | e |
w.paragraph | method | paragraph(e) | e |
w.text | method | text(e) | e |
w.escape | method | escape(e) | e |
w.tag | method | tag(e) | e |
w.link | method | link(e) | e |
w.reflink | method | reflink(e,t) | e,t |
w.emStrong | method | emStrong(e,t,n="") | e,t,n="" |
w.codespan | method | codespan(e) | e |
w.br | method | br(e) | e |
w.del | method | del(e,t,n="") | e,t,n="" |
w.autolink | method | autolink(e) | e |
w.url | method | url(e) | e |
w.inlineText | method | inlineText(e) | e |
l.rules | static get | static get rules() | — |
l.lex | static method | static lex(e,t) | e,t |
l.lexInline | static method | static lexInline(e,t) | e,t |
l.lex | method | lex(e) | e |
l.blockTokens | method | blockTokens(e,t=[],n=!1) | e,t=[],n=!1 |
l.inline | method | inline(e,t=[]) | e,t=[] |
l.inlineTokens | method | inlineTokens(e,t=[]) | e,t=[] |
l.infiniteLoopError | method | infiniteLoopError(e) | e |
y.space | method | space(e) | e |
y.code | method | code({text:e,lang:t,escaped:n}) | {text:e,lang:t,escaped:n} |
y.blockquote | method | blockquote({tokens:e}) | {tokens:e} |
y.html | method | html({text:e}) | {text:e} |
y.def | method | def(e) | e |
y.heading | method | heading({tokens:e,depth:t}) | {tokens:e,depth:t} |
y.hr | method | hr(e) | e |
y.list | method | list(e) | e |
y.listitem | method | listitem(e) | e |
y.checkbox | method | checkbox({checked:e}) | {checked:e} |
y.paragraph | method | paragraph({tokens:e}) | {tokens:e} |
y.table | method | table(e) | e |
y.tablerow | method | tablerow({text:e}) | {text:e} |
y.tablecell | method | tablecell(e) | e |
y.strong | method | strong({tokens:e}) | {tokens:e} |
y.em | method | em({tokens:e}) | {tokens:e} |
y.codespan | method | codespan({text:e}) | {text:e} |
y.br | method | br(e) | e |
y.del | method | del({tokens:e}) | {tokens:e} |
y.link | method | link({href:e,title:t,tokens:n}) | {href:e,title:t,tokens:n} |
y.image | method | image({href:e,title:t,text:n,tokens:s}) | {href:e,title:t,text:n,tokens:s} |
y.text | method | text(e) | e |
L.strong | method | strong({text:e}) | {text:e} |
L.em | method | em({text:e}) | {text:e} |
L.codespan | method | codespan({text:e}) | {text:e} |
L.del | method | del({text:e}) | {text:e} |
L.html | method | html({text:e}) | {text:e} |
L.text | method | text({text:e}) | {text:e} |
L.link | method | link({text:e}) | {text:e} |
L.image | method | image({text:e}) | {text:e} |
L.br | method | br() | — |
L.checkbox | method | checkbox({raw:e}) | {raw:e} |
l.parse | static method | static parse(e,t) | e,t |
l.parseInline | static method | static parseInline(e,t) | e,t |
l.parse | method | parse(e) | e |
l.parseInline | method | parseInline(e,t=this.renderer) | e,t=this.renderer |
P.preprocess | method | preprocess(e) | e |
P.postprocess | method | postprocess(e) | e |
P.processAllTokens | method | processAllTokens(e) | e |
P.emStrongMask | method | emStrongMask(e) | e |
P.provideLexer | method | provideLexer(e=this.block) | e=this.block |
P.provideParser | method | provideParser(e=this.block) | e=this.block |
q.walkTokens | method | walkTokens(e,t) | e,t |
q.use | method | use(...e) | ...e |
q.setOptions | method | setOptions(e) | e |
q.lexer | method | lexer(e,t) | e,t |
q.parser | method | parser(e,t) | e,t |
q.parseMarkdown | method | parseMarkdown(e) | e |
q.onError | method | onError(e,t) | e,t |
g.options | static assigned-method | function(l) | l |
g.setOptions | static assigned-method | function(l) | l |
g.use | static assigned-method | function(...l) | ...l |
g.walkTokens | static assigned-method | function(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
import {marked} from '/arcane/modules/Marked.min.js';
console.log(marked.parse('# Ready'));
Related reference
No direct Core call is claimed for this artifact. Any injected provider or consuming module retains its own documented authority.