aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_markdown.c
Commit message (Collapse)AuthorAgeFilesLines
* implement the roff(7) \p (break output line) escape sequenceIngo Schwarze2017-06-141-2/+13
|
* fix formatting of intermediate punctuation in .LkIngo Schwarze2017-05-301-7/+13
|
* Move .sp to the roff modules. Enough infrastructure is in placeIngo Schwarze2017-05-051-2/+4
| | | | now that this actually saves code: -70 LOC.
* move .ll to the roff modulesIngo Schwarze2017-05-051-6/+2
|
* Move handling of the roff(7) .ft request from the man(7)Ingo Schwarze2017-05-051-2/+5
| | | | | 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-7/+13
| | | | | 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-4/+4
| | | | | | | | * 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-4/+15
| | | | | | | | | 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-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