MARKED(1)
π MARKED(1) π
okay bestie, listen up β this is marked, the manual page, and it is literally the moment. it lives in the General Commands Manual section of your man pages, and we're gonna get you fluent in it. slay.
πΈ NAME πΈ
marked β a javascript markdown parser π¦
like. a markdown parser. in javascript. that's the whole vibe. no cap.
β¨ SYNOPSIS β¨
marked [-o <output file>] [-i <input file>] [-s <markdown string>] [-c
<config file>] [--help] [--version] [--tokens] [--no-clobber]
[--pedantic] [--gfm] [--breaks] [--no-etc...] [--silent] [filename]
look at all those little flags, they're giving β¨optionsβ¨ and honestly? obsessed. π
π DESCRIPTION π
marked is a full-featured javascript markdown parser, and bestie, it was built for speed. periodt. β‘
it also ships with multiple GFM features, so github-flavored markdown? yeah. handled. π
π EXAMPLES π
here's the girlies doing the thing, fr fr:
cat in.md | marked > out.html
echo "hello *world*" | marked
marked -o out.html -i in.md --gfm
marked --output="hello world.html" -i in.md --no-breaks
see how casual that was? pipe it, echo it, flag it up, quote your filenames with spaces in em. iconic. π
π OPTIONS π
-o,--output[output file] β tell it where to write the output. and if you don't specify anything? it just writes to stdout, no drama. π«-i,--input[input file] β tell it where to read from. if you don't pass this, it'll use the last argument as the input file instead. and if there's literally no input file at all? it reads from stdin. flexible queen. π«Ά-s,--string[markdown string] β instead of a file, just hand it a raw string of markdown. yes, inline. yes, chaotic. yes, we love it. β¨-c,--config[config file] β point it at a config file to use instead of the default, which is~/.marked.jsonor~/.marked.jsor~/.marked/index.js. three whole defaults, she's prepared. π-t,--tokensβ output a token list instead of html. for when you wanna see the β¨internalsβ¨. π₯-n,--no-clobberβ do not overwrite the output if it already exists. protective. we stan a boundaries-having binary. π--pedanticβ conform to the obscure parts ofmarkdown.plas much as possible. and ngl, it does not fix the original markdown bugs. it preserves them. respectfully. π--gfmβ enable github flavored markdown. the glow-up. β--breaksβ enable GFM line breaks. heads up though: this only works with the gfm option. no gfm, no breaks, that's the rule. π--no-breaks,-no-etc...β the inverse of any of themarkedoptions listed above. flip the switch, undo the thing. π¦--silentβ silence error output. shhh. π€«-h,--helpβ display help information. your girl is here to help. π«Ά
π§ CONFIGURATION π§
for configuring and running it programmatically. yes, we're getting code-y. no, i'm not scared.
π Example
import { Marked } from 'marked';
const marked = new Marked({ gfm: true });
marked.parse('*foo*');
look at her. new Marked({ gfm: true }) and then marked.parse('*foo*'). clean, gorgeous, no notes. β¨
π BUGS π
please report any bugs to https://github.com/markedjs/marked
(not me manifesting a bug-free experience but okay bestie, if something's cursed, that's the spot. π)
π LICENSE π
Copyright (c) 2018+, MarkedJS. (MIT License) Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)
both MIT, both icons. π
π SEE ALSO π
go read those too, iykyk. π
and that's the whole page, bestie!! this was marked 18.0.6, dated August 2026 β so yes, she's fresh off the press and lowkey thriving. now go parse some markdown. slay, periodt, bye!! π β¨π¦
π¦ where this page comes from
- ubuntu stonking: node-marked 18.0.6+~cs7.2.17-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms