aboutsummaryrefslogtreecommitdiff
path: root/mardown/ast_header.go
diff options
context:
space:
mode:
Diffstat (limited to 'mardown/ast_header.go')
-rw-r--r--mardown/ast_header.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/mardown/ast_header.go b/mardown/ast_header.go
index 540f47f..c7bc85d 100644
--- a/mardown/ast_header.go
+++ b/mardown/ast_header.go
@@ -16,8 +16,14 @@ func header(lxs lexers) (block, error) {
if err != nil {
return nil, err
}
+ // if this is a header, just consider it as literal #
if h, ok := bl.(*astHeader); ok {
- //TODO: handle
+ var s string
+ for range h.level {
+ s += "#"
+ }
+ b.content = append(b.content, astLiteral(s))
+ b.content = append(b.content, h.content...)
}
b.content = append(b.content, bl)
}