markdown processor powered by plugins part of the @unifiedjs collective
MIT License
Bot releases are hidden (Show)
import-meta-resolve
Full Changelog: https://github.com/remarkjs/remark/compare/[email protected]@12.0.1
Published by wooorm about 1 year ago
Full Changelog: https://github.com/remarkjs/remark/compare/15.0.0...15.0.1
Published by wooorm about 1 year ago
exports
@types/mdast
, mdast-util-{from,to}-markdown
, unified
, etcremark-link-rewrite
to list of pluginsremark-mentions
to list of pluginsFull Changelog: https://github.com/remarkjs/remark/compare/14.0.3...15.0.0
(see 15.0.0
)
(see 15.0.0
)
(see 15.0.0
)
Published by wooorm over 1 year ago
Published by wooorm over 1 year ago
tsconfig
s for perf and strictnesstsconfig.json
to use node16 module resolutionignore-scripts
to .npmrc
remark-ins
to list of pluginsremark-flexible-markers
to list of pluginsremark-flexible-paragraphs
to list of pluginsremark-flexible-containers
to list of pluginsremark-flexible-code-titles
to list of pluginsremark-cloudinary-docusaurus
to list of pluginsmdast-util-to-markdown
remark-code-title
to list of pluginsremark-jargon
Full Changelog: https://github.com/remarkjs/remark/compare/14.0.2...14.0.3
Published by wooorm over 2 years ago
unified-args
Full Changelog: https://github.com/remarkjs/remark/compare/[email protected]
Published by wooorm almost 3 years ago
Full Changelog: https://github.com/remarkjs/remark/compare/14.0.1...14.0.2
Published by wooorm almost 3 years ago
Change:
// From CommonJS
var remark = require('remark')
// To ESM
import {remark} from 'remark'
// Plugins use default exports:
var remarkParse = require('remark-parse') // => import remarkParse from 'remark-parse'
var remarkStringify = require('remark-stringify') // => import remarkStringify from 'remark-stringify'
unified
(10.0.0) (see: https://github.com/unifiedjs/unified/releases/tag/10.0.0)vfile
(5.0.0) (see: https://github.com/vfile/vfile/releases/tag/5.0.0)vfile.contents
vfile.value
mdast-util-from-markdown
(1.0.0) (see: https://github.com/syntax-tree/mdast-util-from-markdown/releases/tag/1.0.0)mdast-util-to-markdown
(1.0.0) (see: https://github.com/syntax-tree/mdast-util-to-markdown/releases/tag/1.0.0)Published by wooorm about 4 years ago
This is a giant change for remark. It replaces the 5+ year old internals with a new low-level parser: micromark
. The old internals have served billions of users well over the years, but markdown has changed over that time. micromark comes with 100% CommonMark (and GFM as an extension) compliance, and (WIP) docs on parsing rules for how to tokenize markdown with a state machine. micromark, and micromark in remark, is a good base for the future.
remark*
packages you are using in package.json
remark-gfm
remark-parse
now defers its work to micromark
and mdast-util-from-markdown
. micromark
is a new, small, complete, and CommonMark compliant low-level markdown parser. from-markdown
turns its tokens into the previously (and still) used syntax tree: mdast. Extensions to remark-parse
work differently: they’re a two-part act. See for example micromark-extension-footnote
and mdast-util-footnote
.
commonmark
is no longer an option — it’s the defaultgfm
is no longer an option — moved to remark-gfm
pedantic
is no longer an option — this legacy and buggy flavor of markdown is no longer widely usedblocks
is no longer an options — it’s no longer suggested to change the internal list of HTML “block” tag namesremark-stringify now defers its work to mdast-util-to-markdown
. It’s a new and better serializer with powerful features to ensure serialized markdown represents the syntax tree (mdast), no matter what plugins do. Extensions to it work differently: see for example mdast-util-footnote
.
options
commonmark
is no longer an option, it’s the defaultemphasis
now defaults to *
bullet
now defaults to *
gfm
is no longer an option — moved to remark-gfm
tableCellPadding
— moved to remark-gfm
tablePipeAlign
— moved to remark-gfm
stringLength
— moved to remark-gfm
pedantic
is no longer an option — this legacy and buggy flavor of markdown is no longer widely usedentities
is no longer an option — with CommonMark there is almost never a need to use character references, as character escapes are preferredquote
— you can now prefer single quotes ('
) over double quotes ("
) in titlesAll of these are for CommonMark compatibility. They’re all fixes. Most of them are inconsequential to most folks.
[text][id]
and images ![alt][id]
) are no longer present as such in the syntax tree if they don’t have a corresponding definition ([id]: example.com
). The reason for this is that CommonMark requires [text *emphasis start][undefined] emphasis end*
to be emphasis.<!---->
)<mailto:foobarbaz>
are now correctly parsed, and the scheme is part of the tree©
w/o the semicolon, are no longer recognizedindent
field is no longer available on position
Thanks to Salesforce, Gatsby, Vercel, and Netlify, and our other backers for sponsoring the work on micromark!
To support our continued work, back us on OpenCollective!