ericclemmons/medium-to-markdown

Bug: italics not rendered properly in certain cases

Almenon opened this issue · 0 comments

url: https://medium.com/@almenon214/keeping-yourself-motivated-as-a-coder-a16a6fcf49c7

expected result:

You could literally be doing anything.

Actual result:

You could literally be doing *anything. *

This is a very understandable bug because the space after the period in the article is actually italicized (it's part of the em element). However for markdown the * needs to be right next to the word. A space inside it results in the stars be rendered as literal stars.