aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_markdown.c
Commit message (Collapse)AuthorAgeFilesLines
* In markdown, autolinks are dangerous. Different compilers disagreeIngo Schwarze2017-03-111-22/+49
| | | | | | | | | | | with respect to what constitutes a valid autolink, and if a compiler deems an autolink invalid, the input turns into an unintended and potentially harmful raw HTML tag. So, never write autolinks. Instead of <link>, write [link](link). Instead of <addr>, write [addr](mailto:addr). Issue pointed out by bentley@, who also agrees with the general direction of the change.
* The CommonMark specification wants that opening parenthesesIngo Schwarze2017-03-081-10/+3
| | | | | inside link destinations be escaped. While here, remove the obsolete ESC_PAR.
* According to the CommonMark specification, backslash escapesIngo Schwarze2017-03-081-1/+5
| | | | and markdown markup do not work inside code spans.
* The CommonMark specification allows list markers fo the form "number) "Ingo Schwarze2017-03-081-2/+2
| | | | | as well as "number. ", so escape closing parentheses after leading digits to improve portability.
* Do not increment .Bl -enum list markers beyond two digits.Ingo Schwarze2017-03-081-2/+4
| | | | | Otherwise, we would indent subsequent paragraphs less than the CommonMark specification requires, harming portability.
* .Bl -column never gets blank lines between rowsIngo Schwarze2017-03-081-2/+6
|
* Add a blank after ">" when quoting.Ingo Schwarze2017-03-081-2/+8
| | | | If is allowed by markdown syntax and more human-readable.
* Escape blanks at the end of markdown linesIngo Schwarze2017-03-071-12/+23
| | | | such that they don't look like output line breaks.
* fix completely empty .Eo: no blank line wantedIngo Schwarze2017-03-071-9/+5
|
* fix spacing after empty .FlIngo Schwarze2017-03-071-2/+12
|
* implement .An -split and -nosplitIngo Schwarze2017-03-071-2/+31
|
* Fix .In formatting in the SYNOPSIS:Ingo Schwarze2017-03-071-10/+7
| | | | No &zwnj; in the middle of **, please.
* URIs need different escaping; reported by reyk@Ingo Schwarze2017-03-061-4/+13
|
* Remove a redundant condition in .%T handling, no functional change.Ingo Schwarze2017-03-041-5/+3
| | | | Found by jsg@ with scan-build.
* new -mdoc -Tmarkdown output mode; OK millert@ reyk@ tb@;Ingo Schwarze2017-03-031-0/+1448
thanks to reyk@ and to Vsevolod at FreeBSD for suggesting it