forked from asciidoctor/asciidoctor
-
Notifications
You must be signed in to change notification settings - Fork 0
New syntax design
mojavelinux edited this page Apr 15, 2013
·
2 revisions
The web and publishing continue to move forward at a rapid pace, and so must AsciiDoc. While the focus for AsciiDoc will always be on keeping markup to a minimum, new macros are necessary to keep up with the times. This page serves as a whiteboard for ideas about new syntax.
Shorthand style
File>New... File>"New Tab" View>"Highlight Mode">Markup>AsciiDoc
Macro style
menu:File[] menu:File[Close] menu:File[New,Message]
Macro style
path:/etc/hosts[] path:/usr/share/gems[]
Literal text role
[path]+/etc/hosts+ [path]+/usr/share/gems+
If the path ends with a forward slash, we can assume it’s a directory and mark it as such. Another option is to have another prefix for directories:
path:/etc/[] dir:/etc[] [path]+/etc/+ [dir]+/etc+