command
module
Version:
v0.0.0-...-c18495b
Opens a new window with list of versions in this module.
Published: Jul 14, 2018
License: BSD-2-Clause
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
doc
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
¶
An example command-line tool that uses opennota/markdown to process markdown input.
Source Files
¶
Directories
¶
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. |
Click to show internal directories.
Click to hide internal directories.