You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2022. It is now read-only.
We are sometimes using cheapskate to parse existing markdown, but other times we are using it to generate markdown of our own instead of concatenating a bunch of strings. The downside is that once you have a Doc, there doesn't seem to be a way to get the underlying Text back, for things like storing it in a database or passing it into text editors.
A render :: Doc -> Text function would be fantastic, although maybe Blocks -> Text would be more appropriate as the Options payload in Doc seems irrelevant when you aren't rendering to HTML.
We are sometimes using cheapskate to parse existing markdown, but other times we are using it to generate markdown of our own instead of concatenating a bunch of strings. The downside is that once you have a
Doc, there doesn't seem to be a way to get the underlyingTextback, for things like storing it in a database or passing it into text editors.A
render :: Doc -> Textfunction would be fantastic, although maybeBlocks -> Textwould be more appropriate as theOptionspayload inDocseems irrelevant when you aren't rendering to HTML.