parsedown-extra icon indicating copy to clipboard operation
parsedown-extra copied to clipboard

Period at end of abbreviations

Open nwtn opened this issue 10 years ago • 0 comments

(I'll have a PR for this momentarily, but I wanted to document the issue.)

If you have a period at the end of an abbreviation definition, the abbreviation is not replaced in the text. E.g.

Ph.D.

*[Ph.D.]: Doctor of Philosophy

…will produce <p>Ph.D.</p>, not <p><abbr title="Doctor of Philosophy">Ph.D.</abbr></p>.

screen shot 2015-02-24 at 11 31 36 am

Omitting the period from the abbreviation definition works, but then the final period in the text is not wrapped in the abbr element:

Ph.D.

*[Ph.D]: Doctor of Philosophy

…will produce <p><abbr title="Doctor of Philosophy">Ph.D</abbr>.</p>.

screen shot 2015-02-24 at 11 31 51 am

nwtn avatar Feb 24 '15 16:02 nwtn