We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091e365 commit 624bbe5Copy full SHA for 624bbe5
internal/token.go
@@ -1879,6 +1879,14 @@ frontmatter_loop:
1879
return z.tt
1880
}
1881
1882
+ // handle string
1883
+ if c == '\'' || c == '"' || c == '`' {
1884
+ z.readString(c)
1885
+ z.tt = TextToken
1886
+ z.data.End = z.raw.End
1887
+ return z.tt
1888
+ }
1889
+
1890
s := z.buf[z.raw.Start : z.raw.Start+1][0]
1891
1892
if s == '<' || s == '{' || s == '}' || c == '<' || c == '{' || c == '}' {
@@ -1892,14 +1900,6 @@ frontmatter_loop:
1900
1893
1901
1894
1902
1895
- // handle string
1896
- if c == '\'' || c == '"' || c == '`' {
1897
- z.readString(c)
1898
- z.tt = TextToken
1899
- z.data.End = z.raw.End
- return z.tt
- }
-
1903
z.dashCount = 0
1904
continue frontmatter_loop
1905
0 commit comments