doc

command module
v0.0.0-...-c18495b Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2018 License: BSD-2-Clause Imports: 12 Imported by: 0

README

doc GoDoc License

A modern lightweight markup language.

install

go get gitlab.com/brytonhall/doc

standards

doc is currently refining its own standard.

usage

There is a library:

md := markdown.New(markdown.XHTMLOutput(true), markdown.Nofollow(true))
fmt.Println(md.RenderToString([]byte("Header\n===\nText")))

and a command line tool.

The following options are supported:

Name Type Description Default
HTML bool whether to enable raw HTML false
Tables bool whether to enable GFM tables true
Linkify bool whether to autoconvert plain-text URLs to links true
Typographer bool whether to enable typographic replacements true
Quotes string double + single quote replacement pairs for the typographer “”‘’
MaxNesting int maximum nesting level 20
LangPrefix string CSS language prefix for fenced blocks language-
Breaks bool whether to convert newlines inside paragraphs into <br> false
Nofollow bool whether to add rel="nofollow" to links false
XHTMLOutput bool whether to output XHTML instead of HTML false

TODO

  • Improve performance with the raw HTML option enabled
  • Write an URL parser/encoder that would support decoding punycode and counting matching [( and )] in URLs

references

doc was forked from golang-commonmark/markdown.

Documentation

Overview

An example command-line tool that uses opennota/markdown to process markdown input.

Directories

Path Synopsis
Package byteutil provides various operations on bytes and byte strings.
Package byteutil provides various operations on bytes and byte strings.
Package linkify provides a way to find links in plain text.
Package linkify provides a way to find links in plain text.
Package markdown provides CommonMark-compliant markdown parser and renderer.
Package markdown provides CommonMark-compliant markdown parser and renderer.

Jump to

Keyboard shortcuts

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