tommoor / slate-md-serializer

A Markdown serializer for the Slate editor framework
MIT License
64 stars 36 forks source link

Start conditionally escaping chars, starting with period #21

Closed golmansax closed 5 years ago

golmansax commented 5 years ago

This addresses https://github.com/tommoor/slate-md-serializer/issues/14 by starting to conditionally escape characters. I added tests for periods because it was affecting links. I also pulled this out into a utility so that tests would be separate from the renderer.

tommoor commented 5 years ago

Hey, sorry this came in while I was on holiday – will take a detailed look this week, thanks for the effort!

golmansax commented 5 years ago

Escaping the period was the only thing I've needed so far because it was messing up links and emails so I'd prefer to merge as is. I probably won't add other conditionals unless they come up.

Happy to adjust to resolve conflicts with #22 if you want.