Parsedown does not treat emphasis tags (*, _, etc.) as literal when spaced out
Author: richjefferyCreated Sep 27, 2017Updated Oct 13, 2025
Labelsbug
Daring Fireball's documentation states:
Markdown treats asterisks (*) and underscores (_) as indicators of emphasis. (...) But if you surround an * or _ with spaces, it’ll be treated as a literal asterisk or underscore.
( https://daringfireball.net/projects/markdown/syntax#em )
So, in most Markdown parsers (including GitHub): *This is italic* produces: This is italic
and: * This is not italic * produces: * This is not italic *
However, the current version of Parsedown treats both as italic. This is confirmed with the current version of the http://parsedown.org/demo site, which shows Markdown PHP working as expected, and Parsedown tripping over.
Source: erusev/parsedown