Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Latest commit

 

History

History
24 lines (15 loc) · 401 Bytes

codeblock-demo.md

File metadata and controls

24 lines (15 loc) · 401 Bytes
has_code
true

This is a demo of the codeblock function from tmplfn

This is the import block in Go from mkpage.go

{{codeblock .src 20 34 "golang"}}

Using mkpage might be used as a preprocessor assembling a markdown document in markdown.

    mkpage \
        "content=markdown:$(cat codeblock-demo.md | mkpage src=mkpage.go)" \
        page.tmpl > page.html