Web and cli based markdown viewer and editor.
-
can output children of any markdown file now.
-
Need to switch to MDeiml implementation
- !!
split_parser
branch tree-sitter-markdown
tree-sitter-markdown-inline
- !!
-
Mainly done
- inline parsing still left
- use go-tree-sitter for markdown
- point at any md file
- print the usual hierarcy tree
- print toc based on atx headers
- keep reference to sections
- render tree based on node type ( block stack from glow? )
- manage memory for rendered elements
- folding
- inline parsing
-
Prints following info about headers
- indented text
- heading level
- start row
- end row
- start byte
- end byte
-
CONSTRAINT: Headers are only single line
-
Options for output format to json, yaml, md, etc.
How to use awk to trim the output?
❯ ./go-tufte toc -p ./data/headers-hash.md
Hi |> 1 [0, 1] (0, 5)
hello |> 2 [2, 5] (6, 24)
hi |> 3 [6, 9] (25, 36)
❯ ./go-tufte toc -p ./data/headers-hash.md |\
awk -F '|>' '{print substr($1, 1, length($1)-1)}' |\
awk '{ gsub(/^[ \t]+|[ \t]+$/, ""); print }'
Hi
hello
hi
❯ ./go-tufte toc -p ./data/headers-hash.md |\
awk -F '|>' '{print $2}'
1 [0, 1] (0, 5)
2 [2, 5] (6, 24)
3 [6, 9] (25, 36)
Features:
- Navigate by section
- Styles
- Presentation
Need examples of conversion to html.
- Data ink.
- Typography.
- Fonts.
- Spacing.
- need to find the article