Colons in headline title are wrongly parsed as tags
vfaronov opened this issue · 3 comments
vfaronov commented
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 commented
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 commented
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 commented
I don't have time to address this myself but I'm very open to pull requests from contributors!