diff --git a/org/headline.go b/org/headline.go index 88e317b..c306aec 100644 --- a/org/headline.go +++ b/org/headline.go @@ -31,7 +31,7 @@ type Headline struct { } var headlineRegexp = regexp.MustCompile(`^([*]+)\s+(.*)`) -var tagRegexp = regexp.MustCompile(`(.*?)\s+(:[A-Za-z0-9_@#%:]+:\s*$)`) +var tagRegexp = regexp.MustCompile(`(.*?)\s+(:[\p{L}0-9_@#%:]+:\s*$)`) func lexHeadline(line string) (token, bool) { if m := headlineRegexp.FindStringSubmatch(line); m != nil { diff --git a/org/html_writer.go b/org/html_writer.go index e763aa7..fa458be 100644 --- a/org/html_writer.go +++ b/org/html_writer.go @@ -293,17 +293,17 @@ func (w *HTMLWriter) WriteHeadline(h Headline) { w.WriteString(fmt.Sprintf(`
-TODO
-[B]
+TODO
+[B]
Headline with todo status & priority
Still outside the drawer
@@ -60,7 +60,7 @@ Headline with tags & prioritycode
wrapped text gets joined
that
foo.
code
— as code plus dash
#+OPTIONS:
toggles supported by go-org
+DONE
+[A]
+#+OPTIONS:
toggles supported by go-org
go-org
supports multiple export toggles as described in the export settings section of the Org mode manual.