mgmeyers / obsidian-smart-typography

Converts quotes to curly quotes, dashes to em dashes, and periods to ellipses
GNU General Public License v3.0
250 stars 11 forks source link

Allow plugin settings to govern dash behavior #10

Closed resignationinfinite closed 2 years ago

resignationinfinite commented 3 years ago

A lot of people only use em-dash rather than en-dash, and most software including macOS converts two dashes to an em-dash rather than an en-dash. Please create a settings option to govern behavior so that those wishing to go with the more commonplace usage of two dashes to an em-dash can do so. Thanks for the great plugin!

mgmeyers commented 2 years ago

Hi @KutuzovGambit the logic for dashes is like so:

Two dashes for en dash Three dashes for em dash Four dashes for three normal dashes (eg, ---)

I'll think about adding a setting to skip the en dash, though. Let me see how complex that would be and get back to you.

mgmeyers commented 2 years ago

Ok, I've added a setting to skip en-dashes. This will only work with the latest insider build, though. Everyone should have access once live preview is released to the public.

Screen Shot 2021-12-12 at 1 36 10 PM
resignationinfinite commented 2 years ago

Ok, I've added a setting to skip en-dashes. This will only work with the latest insider build, though. Everyone should have access once live preview is released to the public.

Screen Shot 2021-12-12 at 1 36 10 PM

Wonderful, thank you!!