This repository has been archived by the owner on Feb 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Markdown stages in html pipe should not an extra wrapping div
This wrapping div would be added when there was more then one element in the markdown (which is the usual case) by hyperscript because hyperscript has no concept of multiple elements in the root node. Our code came to expect this wrapping which led to markdowns with a single element being rendered as an empty document in some cases (the single element would be deleted during the emit-html when generating .content.children). This commit fixes this issue by using hast-util-to-html instead of hyperscript for the hast -> html conversion which does indeed have a concept of multiple elements at the root node. Fixes #157
- Loading branch information
Showing
5 changed files
with
84 additions
and
59 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
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