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

Built in handling of tabs? #9

Open
connerxyz opened this issue Jun 29, 2021 · 0 comments
Open

Built in handling of tabs? #9

connerxyz opened this issue Jun 29, 2021 · 0 comments

Comments

@connerxyz
Copy link

connerxyz commented Jun 29, 2021

I really enjoy the simplicity and usefulness of yamldown. Thanks for contributing.

Issue: YAML doesn't accept tabs and this creates problems, especially with user created content (common with static sites that use the YAML + Markdown format).

Can/should yamldown support an argument for considering this and replacing tabs with spaces?

Sketching this out.

yamldown.load(f, replace_tabs=True)

Doing...

yaml_str = yaml_str.replace("\t", "  ")
yaml = yaml.load(...)
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

1 participant