This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@phenomic/plugin-transform-markdown: allow custom markup
This plugin now use [unified](http://unifiedjs.github.io) directly instead of [remark](https://github.com/wooorm/remark) so we can mix remark with [rehype](https://github.com/wooorm/rehype) to allow custom markup. This will open up usage of custom react components when rendering markdown tree with a custom mapping. Closes [#187](#817) Closes [#1098](#1098)
- Loading branch information
Showing
10 changed files
with
512 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
declare module "unified" { | ||
declare var exports: any; | ||
} | ||
declare module "remark-parse" { | ||
declare var exports: any; | ||
} | ||
declare module "remark-toc" { | ||
declare var exports: any; | ||
} | ||
declare module "remark-rehype" { | ||
declare var exports: any; | ||
} | ||
declare module "rehype-raw" { | ||
declare var exports: any; | ||
} | ||
declare module "rehype-slug" { | ||
declare var exports: any; | ||
} | ||
declare module "rehype-autolink-headings" { | ||
declare var exports: any; | ||
} | ||
declare module "rehype-highlight" { | ||
declare var exports: any; | ||
} | ||
declare module "rehype-stringify" { | ||
declare var exports: any; | ||
} | ||
declare module "rehype-react" { | ||
declare var exports: any; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
packages/plugin-transform-markdown/src/__tests__/__snapshots__/remark-plugins.js.snap
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.