php-markdown icon indicating copy to clipboard operation
php-markdown copied to clipboard

Abbreviations improvement

Open BarbzYHOOL opened this issue 5 years ago • 5 comments

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

  • if the abbreviation is singular, then the plural form won't be detected as an abbr. There could be a way to define this per abbreviation eventually? atm forced to duplicate each abbr
  • If the abbreviation has one uppercase character, then it won't be detected, but sometimes acronyms have weird casing, or putting an abbr on a simple word which is the first word in a sentence means it won't be detected

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

BarbzYHOOL avatar May 13 '20 00:05 BarbzYHOOL

Do you have some examples?

michelf avatar May 13 '20 00:05 michelf

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

BarbzYHOOL avatar May 13 '20 00:05 BarbzYHOOL

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

michelf avatar May 13 '20 01:05 michelf