Bug fixes:
• "```````" is no longer treated as codeblock
• Added new optional parameter strictMode which defaults to true. strictMode incur some overhead to ensure that in edge-cases such as "```csharp```", "csharp" will become Code instead of Formatter.
Performance optimizations:
• Reduced code size by merging return paths
• Greatly optimized comparision of characters
Bug fixes: •
"```````"
is no longer treated as codeblock • Added new optional parameterstrictMode
which defaults totrue
.strictMode
incur some overhead to ensure that in edge-cases such as"```csharp```"
,"csharp"
will becomeCode
instead ofFormatter
.Performance optimizations: • Reduced code size by merging return paths • Greatly optimized comparision of characters
Basic test code: https://sharplab.io/#v2:EYLgxg9gTgpgtADwGwBYA0AXEUCuA7AHwAEAmARgFgAoIgBgAIiyA6AEQEsBDAczwgGcM7MP2YBhCABMYAQTycANgE9+7fgG5qdRiwBK+IQFsY4iIYAO7BTCgBlGwDdhMDdWoPOUevxxgwL/noAXnoJaQAhBQgwAGtmABUoJQAFT34YAAoAIgADPJEAC09zAB08PJystHoIHAx6Dy8wYABKTSotMgBODIASLNtff35+EHoAbx8/AIBfegJ6ADFoQ04MDBsx8ebmZahV9Zs5hbCYLZ3Tmay2tyop4cCQ08jouMSUtMzc/P4iqFK8GUKlUanV6M0bh0aN0+gMhgEtvdZvMlis1hsoOdgLs0YcoMdQlIzhMLkSrpDqEiRsFCREorEEklUlB0tkKoVimUABrA6q1eoQ9qdHr9QbTEaI+EjAl7A4YrE4/boo4o04Ky7XIV3KWPWkwF4M97M1nfHIc/4APx5eRB/PBrS1TBFcPFowmVP4Mtx8pJ2NlyvxqqJ6rJmtuHppz3pbyZnzZeSBNr5YMFtydsLFD0lrq9SrxCv9eIJat9pmk5K1EaeRINMY+LK+FV5oIFDrTMNFOuzDwraYAzIwSHra9RxtR6BPGAOmAxThN6NwYBh1PQZuPJ0Rp2RaAB+VF5jHzxfL1e3SdT4fRjIz8FE6ozvcAM29NhpeBwCgULXXE7HVHP55ziEkDSO0AGToWh4hM+B42GBk5rlC54ANoALJLgUUgAJIWAoGToRgmGSDh5gKAA8uYQgQHgogyNw3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