Skip to content

Commit f83d2d8

Browse files
committed
Fix tag property parsing
1 parent 320e67b commit f83d2d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ingest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
PAGE_LINK = re.compile(r"\[\[([^\]]+)\]\]") # [[Page]]
3434
BLOCK_REF = re.compile(r"\(\(([a-zA-Z0-9_-]{6,})\)\)") # ((block-id))
3535
TAG_HASH = re.compile(r"(?<!\w)#([A-Za-z0-9/_-]+)") # #tag
36-
TAG_PROP = re.compile(r"^tags::\s*(.+)$", re.MULTILINE) # tags:: a, b
36+
TAG_PROP = re.compile(r"^\s*tags::\s*(.+)$", re.MULTILINE) # tags:: a, b
3737

3838
def normalize_logseq_links(text: str) -> str:
3939
"""Replace Logseq-specific link syntax with plain text.

0 commit comments

Comments
 (0)