rtfm(1) - manual pages
#41
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://commonmark.org/
I’ve decided on a strict subset of commonmark to implement for this:
*Italics*__Bold__# Heading 1(will be used for section number),## Heading 2(for all other headings)[Text][Ref]and at the bottom of the doc[Ref] http://example.com- List item1. Numbered item> Quote Blockplus a couple of extensions:
Underline:
_Underline_Strikethrough:
~Strikethrough~Comments:
; CommentCould
#headers be specifically for title/section metadata?For example, roff:
and my proposed equivalent usage in doc:
Or
PAGE 1or whatever would be best. Just an idea. It would also be nice to have###- just in general it may be handy but also in particular with#being title specification.I think the following would be more consistent:
**bold**,__underline__,~~strikethrough~~,//italic//. All of these are flanked by two of the same rune on either side, which helps writers remember them easier.And then potentially if they're useful (or even theoretically so)
(edit: backslashes as markup is a bad idea),\\diminished\\(e.g.<small />in obsolete HTML, or like whispers in comic books)^^superscript^^,,,subscript,,, but I'm not in love with any of these, they're just ideas I thought up.It would be nice to have in-line references, maybe similarly to MediaWiki. I don't wanna scroll down to find the hyperlink for a reference and then have to find my previous position.
;is a fine comment character. I'm a little wary of common punctuation but starting a line with a semicolon is unusual and nonsensical so it's probably fine. If it initiates a comment at any point in a line though and not at the start that could be a big problem.I think comments should probably be
;;Another point against roff is that it can run arbitrary commands.
@trinity mentioned renaming this to the more interesting
rtfm(1).`doc(1)` - manual pages in commonmarkto `rtfm(1)` - manual pages in commonmark`rtfm(1)` - manual pages in commonmarkto `rtfm(1)` - manual pagesIn my opinion, it would be a good idea to make this two programs, rtfm and a text formatter, where the former calls upon the latter. This would enable other programs to make use of this language.
I agree.
rtfm(1)'s function would be database management; the "find" in find | format | page. Ideally it could be a shell script.
Agreed.