diff options
Diffstat (limited to 'prototypes/browse/27/main.mu')
-rw-r--r-- | prototypes/browse/27/main.mu | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/prototypes/browse/27/main.mu b/prototypes/browse/27/main.mu index c6272343..48664533 100644 --- a/prototypes/browse/27/main.mu +++ b/prototypes/browse/27/main.mu @@ -63,6 +63,20 @@ $render-normal:loop: { loop $render-normal:loop } } + # if start of paragraph and c == '#', switch to header + compare start-of-paragraph?, 0 + { + break-if-= + compare c, 0x23 # '#' + { + break-if-!= + render-header-line fs, state + newline-seen? <- copy 1 # true + loop $render-normal:loop + } + } + # c is not a newline + start-of-paragraph? <- copy 0 # false # if c is unprintable (particularly a '\r' CR), skip it compare c, 0x20 loop-if-< @@ -85,15 +99,6 @@ $render-normal:flush-buffered-newline: { } ## end soft newline support - # if start of paragraph and c == '#', switch to header - compare c, 0x23 # '#' - { - break-if-!= - render-header-line fs, state - newline-seen? <- copy 1 # true - loop $render-normal:loop - } - # if (c == '*') switch to bold compare c, 0x2a # '*' { |