michelf / php-markdown

Parser for Markdown and Markdown Extra derived from the original Markdown.pl by John Gruber.
http://michelf.ca/projects/php-markdown/
Other
3.43k stars 530 forks source link

Abbreviations improvement #330

Open BarbzYHOOL opened 4 years ago

BarbzYHOOL commented 4 years ago

Predefined abbreviations are very useful but they don't work in specific cases:

note: posted here first https://github.com/jonlabelle/ci-markdown/issues/13

michelf commented 4 years ago

Do you have some examples?

BarbzYHOOL commented 4 years ago

if you define an abbreviation for "NPC" (non playable character), then if you write "NPCs" it won't be detected and you have to set each abbreviation twice

for uppercase stuff, example this small organization called https://cmangos.net/ is written CMaNGOS, but it's easy to forget and write CMANGOS

Or Lua, often written LUA

michelf commented 4 years ago

So what you're suggesting is to make the comparison case-insensitive?