Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore markdown hash/heading marks? #13

Open
Tracked by #15
cuihtlauac opened this issue Jan 11, 2023 · 1 comment
Open
Tracked by #15

Ignore markdown hash/heading marks? #13

cuihtlauac opened this issue Jan 11, 2023 · 1 comment

Comments

@cuihtlauac
Copy link

Shouldn't:

echo '### A small tool and library (crate) that capitalizes English text' | titlecase

produce:

### A Small Tool and Library (Crate) That Capitalizes English Text

instead of:

### a Small Tool and Library (Crate) That Capitalizes English Text

?

@wezm
Copy link
Owner

wezm commented Jan 11, 2023

The implementations I based mine on don't do that so mine doesn't either. It does seem like it would be a reasonable addition for a common use case. Perhaps all leading punctuation should be skipped over?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants