kgar / ts-markdown

An extensible TypeScript markdown generator that takes JSON and creates a markdown document
https://kgar.github.io/ts-markdown/
MIT License
9 stars 4 forks source link

Add more support for JS primitives and common objects #23

Closed kgar closed 2 years ago

kgar commented 2 years ago

Numbers, booleans, and Dates currently do not render when passed through the getMarkdownString() function. They return as empty strings.

Any primitive or common JS object that has a reasonable string equivalent should be able to be rendered.

Note: these primitives should have renderers of their own which can be overridden.

Add renderers for

If we find that more are needed, we can put out another GitHub issue to get more added.