node-slug icon indicating copy to clipboard operation
node-slug copied to clipboard

<3 is a little aggressive for a default

Open stevemoser opened this issue 10 years ago • 2 comments

I like that <3 is replaced with love. It's cute. But what if I want to slug a math expression: 2<3? How does it know when I want 'less than' rather than 'love'?

<3 might be better as an example of adding a replacement instead of being default.

Thoughts?

stevemoser avatar Aug 28 '15 03:08 stevemoser

:+1:

Krinkle avatar Sep 04 '15 05:09 Krinkle

just do:

delete slug.multicharmap['<3'];

dashed avatar Sep 12 '15 10:09 dashed