summaryrefslogtreecommitdiffstats
path: root/mdoc_markdown.c
Commit message (Collapse)AuthorAgeFilesLines
* implement the roff(7) \p (break output line) escape sequenceIngo Schwarze2017-06-141-1/+12
|
* fix formatting of intermediate punctuation in .LkIngo Schwarze2017-05-301-6/+12
|
* Move .sp to the roff modules. Enough infrastructure is in placeIngo Schwarze2017-05-051-1/+3
| | | | now that this actually saves code: -70 LOC.
* move .ll to the roff modulesIngo Schwarze2017-05-051-5/+1
|
* Move handling of the roff(7) .ft request from the man(7)Ingo Schwarze2017-05-051-1/+4
| | | | | modules to the new roff(7) modules. As a side effect, mdoc(7) now handles .ft, too. Of course, do not use that.
* Parser reorg:Ingo Schwarze2017-05-041-6/+12
| | | | | Generate the first node on the roff level: .br Fix some column numbers in diagnostic messages while here.
* Continue parser unification:Ingo Schwarze2017-04-241-3/+3
| | | | | | | | * Make enum rofft an internal interface as enum roff_tok in "roff.h". * Represent mdoc and man macros in enum roff_tok. * Make TOKEN_NONE a proper enum value and use it throughout. * Put the prologue macros first in the macro tables. * Unify mdoc_macroname[] and man_macroname[] into roff_name[].
* Fix handling of trailing punctuation in .Lk.Ingo Schwarze2017-04-171-3/+14
| | | | | | | | | This macro is unusual in so far as trailing punction needs to remain inside the scope because it must be inside, not after the display of long URIs in terminal output mode. Improves formatting of fw_update(1), help(1), less(1), sendbug(1), acx(4), inet6(4), ipsec(4), oce(4), isakmpd.conf(5), afterboot(8), release(8), traceroute(8).
* In markdown, autolinks are dangerous. Different compilers disagreeIngo Schwarze2017-03-111-21/+48
| | | | | | | | | | | 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-9/+2
| | | | | inside link destinations be escaped. While here, remove the obsolete ESC_PAR.
* According to the CommonMark specification, backslash escapesIngo Schwarze2017-03-081-0/+4
| | | | and markdown markup do not work inside code spans.
* The CommonMark specification allows list markers fo the form "number) "Ingo Schwarze2017-03-081-1/+1
| | | | | 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-1/+3
| | | | | 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-1/+5
|
* Add a blank after ">" when quoting.Ingo Schwarze2017-03-081-1/+7
| | | | If is allowed by markdown syntax and more human-readable.
* Escape blanks at the end of markdown linesIngo Schwarze2017-03-071-11/+22
| | | | such that they don't look like output line breaks.
* fix completely empty .Eo: no blank line wantedIngo Schwarze2017-03-071-8/+4
|
* fix spacing after empty .FlIngo Schwarze2017-03-071-1/+11
|
* implement .An -split and -nosplitIngo Schwarze2017-03-071-1/+30
|
* Fix .In formatting in the SYNOPSIS:Ingo Schwarze2017-03-071-9/+6
| | | | No &zwnj; in the middle of **, please.
* URIs need different escaping; reported by reyk@Ingo Schwarze2017-03-061-3/+12
|
* Remove a redundant condition in .%T handling, no functional change.Ingo Schwarze2017-03-041-4/+2
| | | | 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