You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
892 B
38 lines
892 B
4 years ago
|
////
|
||
|
Included in:
|
||
|
|
||
|
- user-manual: Horizontal Rules
|
||
|
////
|
||
|
|
||
|
.Horizontal rule syntax
|
||
|
[source]
|
||
|
----
|
||
|
include::ex-hr.adoc[tag=base]
|
||
|
----
|
||
|
|
||
|
.Result: Horizontal rule
|
||
|
====
|
||
|
include::ex-hr.adoc[tag=base]
|
||
|
====
|
||
|
|
||
|
=== Markdown-style horizontal rules
|
||
|
|
||
|
Asciidoctor recognizes Markdown horizontal rules.
|
||
|
The motivation here is to ease migration of Markdown documents to AsciiDoc documents.
|
||
|
|
||
|
To avoid conflicts with AsciiDoc's block delimiter syntax, only 3 repeating characters (`-` or `+*+`) are recognized.
|
||
|
As with Markdown, whitespace between the characters is optional.
|
||
|
|
||
|
.Markdown-style horizontal rule syntax
|
||
|
[source,markdown]
|
||
|
----
|
||
|
include::ex-hr.adoc[tag=md]
|
||
|
----
|
||
|
|
||
|
.Result: Markdown-style horizontal rules
|
||
|
====
|
||
|
include::ex-hr.adoc[tag=md]
|
||
|
====
|
||
|
|
||
|
A macro definition for the Markdown horizontal rules is included in the AsciiDoc compatibility file so they can be recognized by the `asciidoc` command as well.
|