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

Colons in headline title are wrongly parsed as tags #54

Open
vfaronov opened this issue May 10, 2020 · 3 comments
Open

Colons in headline title are wrongly parsed as tags #54

vfaronov opened this issue May 10, 2020 · 3 comments

Comments

@vfaronov
Copy link

Parsing this text:

* foo: bar:
baz

results in:

Headline {depth = Depth 1, title = "foo", tags = [" bar"], ...

but should result in:

Headline {depth = Depth 1, title = "foo: bar:", tags = [], ...
@vfaronov
Copy link
Author

A partial fix would be to limit tags to the characters allowed by the Org syntax draft (alphanumeric and some punctuation). But a headline like this would still be parsed incorrectly:

* foo bar:baz:

@volhovm
Copy link
Contributor

volhovm commented Dec 1, 2020

I confirm I also have this problem. I just found it and wanted to submit my own issue on this. Probably the solution would be to disallow spaces in tags? As far as I understand this is what org-mode does as well.

@ixmatus
Copy link
Owner

ixmatus commented Feb 21, 2022

I don't have time to address this myself but I'm very open to pull requests from contributors!

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

3 participants