1
1
mirror of https://github.com/wader/fq.git synced 2024-12-23 05:13:30 +03:00
fq/format/markdown/testdata/help_markdown.fqtest
Mattias Wadman dec433fc53 help,markdown: Fix double line breaks when converting to text
Also fix ugly last line break hack
2023-03-02 23:38:11 +01:00

16 lines
342 B
Plaintext

$ fq -h markdown
markdown: Markdown decoder
Decode examples
===============
# Decode file as markdown
$ fq -d markdown . file
# Decode value as markdown
... | markdown
Array with all level 1 and 2 headers
====================================
$ fq -d markdown '[.. | select(.type=="heading" and .level<=2)?.children[0]]' file.md