platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.18k stars 80 forks source link

FR: Add Option for Hyphenating Words that are Hyphenated #657

Open pjkaufman opened 1 year ago

pjkaufman commented 1 year ago

Describe the Bug

When a compound word like "Floating-point" is in a header it does not capitalize point when it is set to capitalize each word in the header.

How to Reproduce

Run Linter on

# Floating-point Types

Expected Behavior

Expected output if applicable:

# Floating-Point Types

Device

Additional Context

This was reported by @pinto on Obsidian discord channel.

pjkaufman commented 1 year ago

This is not a bug. This is actually a feature request since there is no set standard on this. You can choose to capitalize any word after the hyphen or leave it as is.

See https://english.stackexchange.com/questions/460/do-you-capitalize-both-parts-of-a-hyphenated-word-in-a-title