-
-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre 4.0] Drop second argument in function signature
Direct configuration of the remark parsing instance is no longer possible (it wasn't very useful to begin with for 99% of users.) Usage of the module is now a bit more straightforward: compiler(markdown: string, options: object?) With options currently allowing for an overrides property that functions exactly like the third argument in 3.x and earlier. compiler('# Hello world!', { overrides: { h1: { component: MyCustomHeader, }, }, });
- Loading branch information
Evan Jacobs
committed
Sep 16, 2016
1 parent
f50219b
commit f269a87
Showing
3 changed files
with
52 additions
and
66 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
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