parser/pageparser: Fix Org Mode summary delimiter assignment

Closes #13152
This commit is contained in:
Joe Mooring
2024-12-15 17:21:05 -08:00
committed by Bjørn Erik Pedersen
parent 744b8566ec
commit 48dd6a918a
2 changed files with 48 additions and 2 deletions

View File

@@ -91,14 +91,14 @@ func lexFrontMatterOrgMode(l *pageLexer) stateFunc {
#+DESCRIPTION: Just another golang parser for org content!
*/
l.summaryDivider = summaryDividerOrg
l.backup()
if !l.hasPrefix(delimOrg) {
return lexMainSection
}
l.summaryDivider = summaryDividerOrg
// Read lines until we no longer see a #+ prefix
LOOP:
for {