summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Nm
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-05 19:59:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-05 19:59:33 +0000
commit6720c2e5aeecf3fc18ed94d21fe39caffaa70f11 (patch)
treee6edc639916f43b52d2efb638f3621e9b9f65207 /regress/mdoc/Nm
parente89ce06acbd8218e6d0eb1ba09458d12ec60ee25 (diff)
downloadmandoc-6720c2e5aeecf3fc18ed94d21fe39caffaa70f11.tar.gz
first batch of -T markdown tests
Diffstat (limited to 'regress/mdoc/Nm')
-rw-r--r--regress/mdoc/Nm/Makefile3
-rw-r--r--regress/mdoc/Nm/break.out_markdown17
-rw-r--r--regress/mdoc/Nm/broken.out_markdown19
-rw-r--r--regress/mdoc/Nm/empty.out_markdown18
-rw-r--r--regress/mdoc/Nm/font.out_markdown13
-rw-r--r--regress/mdoc/Nm/long.out_markdown13
-rw-r--r--regress/mdoc/Nm/par.out_markdown14
-rw-r--r--regress/mdoc/Nm/parns.out_markdown22
-rw-r--r--regress/mdoc/Nm/punct.out_markdown42
9 files changed, 161 insertions, 0 deletions
diff --git a/regress/mdoc/Nm/Makefile b/regress/mdoc/Nm/Makefile
index 2b5a5b83..515f9e5d 100644
--- a/regress/mdoc/Nm/Makefile
+++ b/regress/mdoc/Nm/Makefile
@@ -6,6 +6,9 @@ REGRESS_TARGETS += font long par parns punct
LINT_TARGETS = badNAME badNAMEuse break broken
+MARKDOWN_TARGETS = break broken empty
+MARKDOWN_TARGETS += font long par parns punct
+
# groff-1.22.3/mandoc differences:
# - When the head of an Nm block in the SYNOPSIS is broken by an
# explicit block end macro on the same line, formatting differs,
diff --git a/regress/mdoc/Nm/break.out_markdown b/regress/mdoc/Nm/break.out_markdown
new file mode 100644
index 00000000..686c234f
--- /dev/null
+++ b/regress/mdoc/Nm/break.out_markdown
@@ -0,0 +1,17 @@
+NM-BREAK(1) - General Commands Manual
+
+# NAME
+
+**Nm-break** - name block head breaking another block
+
+# SYNOPSIS
+
+**before&nbsp;\[within]**
+
+# DESCRIPTION
+
+initial text
+**Nm-break**
+final text
+
+OpenBSD - August 17, 2014
diff --git a/regress/mdoc/Nm/broken.out_markdown b/regress/mdoc/Nm/broken.out_markdown
new file mode 100644
index 00000000..cb674648
--- /dev/null
+++ b/regress/mdoc/Nm/broken.out_markdown
@@ -0,0 +1,19 @@
+NM-BROKEN(1) - General Commands Manual
+
+# NAME
+
+**Nm-broken** - broken synapsis name block
+
+# SYNOPSIS
+
+*int*
+**function**(**name**);
+
+tail
+\[oo
+**nm**
+oc]
+
+- item
+
+OpenBSD - February 11, 2017
diff --git a/regress/mdoc/Nm/empty.out_markdown b/regress/mdoc/Nm/empty.out_markdown
new file mode 100644
index 00000000..102b16c3
--- /dev/null
+++ b/regress/mdoc/Nm/empty.out_markdown
@@ -0,0 +1,18 @@
+NM-EMPTY(2) - System Calls Manual
+
+# NAME
+
+**Nm-empty** - handling of empty name macros
+
+# SYNOPSIS
+
+**Nm-empty**
+**Nm-empty**
+
+# DESCRIPTION
+
+The
+**Nm-empty**
+utility ...
+
+OpenBSD - June 30, 2010
diff --git a/regress/mdoc/Nm/font.out_markdown b/regress/mdoc/Nm/font.out_markdown
new file mode 100644
index 00000000..1425fb5b
--- /dev/null
+++ b/regress/mdoc/Nm/font.out_markdown
@@ -0,0 +1,13 @@
+NM-FONT(1) - General Commands Manual
+
+# NAME
+
+**Nm-font** - changing fonts inside the name macro
+
+# DESCRIPTION
+
+normal text
+**bold*emphasis*back**
+trailing text
+
+OpenBSD - July 9, 2012
diff --git a/regress/mdoc/Nm/long.out_markdown b/regress/mdoc/Nm/long.out_markdown
new file mode 100644
index 00000000..a421f068
--- /dev/null
+++ b/regress/mdoc/Nm/long.out_markdown
@@ -0,0 +1,13 @@
+NM-LONG(1) - General Commands Manual
+
+# NAME
+
+**Nm-long** - long Nm in the SYNOPSIS
+
+# SYNOPSIS
+
+**This is a terribly long name, it is so long that it does not fit one one single line -**
+**-o**
+*file&nbsp;...*
+
+OpenBSD - April 4, 2014
diff --git a/regress/mdoc/Nm/par.out_markdown b/regress/mdoc/Nm/par.out_markdown
new file mode 100644
index 00000000..c2a355d6
--- /dev/null
+++ b/regress/mdoc/Nm/par.out_markdown
@@ -0,0 +1,14 @@
+NM-PAR(1) - General Commands Manual
+
+# NAME
+
+**Nm-par** - paragraph macro in a synopsis name block
+
+# SYNOPSIS
+
+**Nm-par**
+**-a**
+
+**-b**
+
+OpenBSD - February 3, 2015
diff --git a/regress/mdoc/Nm/parns.out_markdown b/regress/mdoc/Nm/parns.out_markdown
new file mode 100644
index 00000000..43b96597
--- /dev/null
+++ b/regress/mdoc/Nm/parns.out_markdown
@@ -0,0 +1,22 @@
+NM-PAR(1) - General Commands Manual
+
+# NAME
+
+**Nm-par** - paragraph macro in a name block
+
+# DESCRIPTION
+
+**Nm-par**
+**-a**
+
+**-b**
+**Nm-par**
+**-a**
+
+**-b**
+**Nm-par**
+\[**-a**
+
+**-b**]
+
+OpenBSD - February 3, 2015
diff --git a/regress/mdoc/Nm/punct.out_markdown b/regress/mdoc/Nm/punct.out_markdown
new file mode 100644
index 00000000..ad848240
--- /dev/null
+++ b/regress/mdoc/Nm/punct.out_markdown
@@ -0,0 +1,42 @@
+NM-PUNCT(1) - General Commands Manual
+
+# NAME
+
+**Nm-punct** - punctuation handling by the Nm macro
+
+# DESCRIPTION
+
+closing punctuation
+**a**)
+only one
+**Nm-punct**)
+only more than one
+**Nm-punct**))
+middle
+**a**) **z**
+start
+**Nm-punct**) z
+dot
+**Nm-punct**. z
+comma
+**Nm-punct**, z
+semicolon
+**Nm-punct**; z
+colon
+**Nm-punct**: z
+quest
+**Nm-punct**? z
+excl
+**Nm-punct**! z
+paren
+**Nm-punct**) z
+bracket
+**Nm-punct**] z
+bar
+| **m**
+op paren
+(**a**
+op bracket
+\[**a**
+
+OpenBSD - August 21, 2014