Markdown.pl: sanitize common "oops" entities
commit34b44054db967b4e3b4df4730824cc36b798e183
authorKyle J. McKay <mackyle@gmail.com>
Sun, 31 Jan 2021 17:38:24 +0000 (31 10:38 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 31 Jan 2021 17:38:24 +0000 (31 10:38 -0700)
treea989e5f95864eb912932b257190c894ee30762c0
parentbf4a09aeb28a3bb1201928c000f36343ae1109f7
Markdown.pl: sanitize common "oops" entities

Take a hint from w3m and quietly fix up the six common entities
&lt; &gt; &amp; &quot; &apos; &nbsp; when they are missing their
trailing ';' provided whatever trailing character is there is not
alphanumeric, an equals sign or a semicolon.

Without this change this case the leading ampersand would have ended
up being escaped to &amp; in these cases which seems likely to be
almost certainly incorrect.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Markdown.pl