metanorma / coradoc

Coradoc is the Core AsciiDoc Parser used by Metanorma
MIT License
1 stars 4 forks source link

Naive subscore escaping #92

Open opoudjis opened 3 years ago

opoudjis commented 3 years ago

As found in https://github.com/metanorma/stepmod-utils/issues/37 , escape_keychars() in lib/reverseadoc/converters/base.rb is naive, and instead of escaping `, it should escape..` within a word; ditto other escape characters.

opoudjis commented 3 years ago

This is partly done in https://github.com/metanorma/reverse_adoc/issues/70. The edge case of escaping __...__, **...** as \__...__, \**...** within in a word could still be done, but it's much lower priority. And since metanorma/reverse_adoc#70 was implemented by @w00lf, I'm transferring this to him too. ;-)