As you know, an equal sign (=) under a line means header formatting in Markdown (see Markdown Help, for those who don't). The text below:
Example
has one =
underneath it, but with a =)
it looks like this in the preview:
and renders as this in the actual outcome:
This example has a =)
!
With a =)
, the actual post should show the same as the screenshot above, but it shows the same as though it had only one =
under it. Why does the preview show something different than the actual outcome, and why does it render with the )
?
UPDATE:
The same thing is happening with the dash: -
, it renders also with a -)
underneath. Example:
This example has a -)
.
It actually happens with any one character after either the -
or =
, and that includes characters in other languages (I've been testing this by editing my "About Me").
/^\s*[=-]+.*$/m
as header formatting (the “underline” line), whereas the preview matches something like/^\s*[=-]+\s*$/m
. The number of dashes or equal signs never matters. The “rendered post” output even clashes with list formatting.