examples

command
v0.0.0-...-3d8b5bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: BSD-2-Clause Imports: 14 Imported by: 0

README

Here you can find examples of advanced uses of this library.

You can use them as base for your own code.

They are described in more detail in https://blog.kowalczyk.info/article/cxn3/advanced-markdown-processing-in-go.html

You can run each of them with: go run <program.go>.

The examples:

  • basic.go : simplest markdown => HTML example
  • render_hook.go : shows how to customize HTML renderer with render hook function
  • code_highlight.go : shows how to syntax highlight code blocks using github.com/alecthomas/chroma
  • parser_hook.go : shows how to extend parser to recognize custom block-level syntax
  • modify_ast.go : shows how to modify AST after parsing but before HTML rendering

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL