To understand what this project does, it’s very important to first understand what unified does: please read through the unifiedjs/unified readme (the part until you hit the API section is required is a unified pipeline - wrapped so that most folks don’t need to know about unified: core.js#L65. See § Types on our website for information.Īdditional CompileOptions, EvaluateOptions, and ProcessorOptions types are exported, which represents acceptable configuration for their respective methods. This package is fully typed with TypeScript. Note that format: 'detect' does not work here: only 'md' or 'mdx' are allowed (and 'mdx' is the default). Has the same options as compile, but returns a configured processor. createProcessor(options)Ĭreate a unified processor to compile MDX to JS. They come from an automatic JSX runtime that you must import yourself. These options are required: Fragment always, when development: true then jsx and jsxs, when development: false then jsxDEV.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |