-
-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This refactor externalises the API (process/ use / parse / transform / compile). The two reasons for that: * Now **retext** can use a similar API, without duplicate code; * Less commits relating to API design will be in this repository. This does change the exports object of `lib/parse` and `lib/compile`, in that they previously exposed different interfaces (a function with a constructor on top). This was normalized into just a constructor (`Parser` / `Compiler`) which receive a virtual file and settings, and expose respectivly either a `parse` or a `compile` method. This additionally changes some internals (where plug-ins) are stored, and removes the limitation of not allowing multiple equal attachers.
- Loading branch information
Showing
8 changed files
with
3,498 additions
and
1,753 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
Oops, something went wrong.