contentstack / json-rte-serializer

The JSON RTE Serializer package helps you convert the data inside your JSON Rich Text Editor field from JSON to HTML format and vice versa.
MIT License
9 stars 7 forks source link

corrected markdown for headings #63

Open thispastwinter opened 19 hours ago

thispastwinter commented 19 hours ago

I'm currently leveraging the jsonToMarkdown helper in a project where I encountered an issue with incorrectly formatted headers.

i.e.

Current Implementation:

###Heading###

Heading### < -- This is not valid markdown

VS

Propose Implementation:

### Heading

Heading < -- This is correctly interpreted via GFM

I have accounted for the necessary changes in this MR proposal.