-
Treat markdown code-fence
kd:codespan
s the same askd:codeblock
s.``` puts "hello world" ```
puts "hello world"
- Ignore
kd:blank
elements to reduce size of generated man pages. - No longer output
.HP
paragraphs due to cross-platform compatibility issues withgroff
,nroff
,troff
. - Renamed
Kramdown::Converters::Man
to {Kramdown::Man::Converter}. - Override {Kramdown::Document#to_man} to use our {Kramdown::Man::Converter}.
-
Added support for definition lists.
-
Switched to using definition lists for documenting options and arguments.
## ARGUMENTS *ARG* : Description goes here. ...
## OPTIONS `-o`, `--option` *VALUE : Description goes here. ...
-
Added support for rendering relative links to other markdown man pages as
SEE ALSO
man page references.Example:
[foo-bar](foo-bar.1.md)
Will be converted into:
foo-bar(1)
-
Ignore horizontal rule elements due to cross-platform compatibility issues with
groff
,nroff
,troff
.
- Added the
-o
,--output FILE
option. - Added the
-V
,--version
option. - Display the
kramdown-man.1
man page when--help
is given, if STDOUT is a TTY. If STDOUT is not a TTY, then the usual--help
information will be printed.
- Allow markdown
man:file.ext
style links, since man pages can be named after file names (ex:shard.yml
). - Use the
.PP
roff macro instead of the deprecated.HP
macro.
- Upgrade to kramdown 2.x.
- Fixed a bug where kramdown's version of
kramdown/converter/man
was being loaded instead of kramdown-man's version.
- Commented out duplicate Hash entries that were causing warnings.
- Translate unicode symbols into roff glyphs.
- Convert typographic symbols and smart quotes into glyphs.
- Simplify
\fB\fC
as\fC
(Colin Watson). - Use
\fB
for codespans (Colin Watson). - Escape
--
as\-\-
(Colin Watson). - Escape
\
as\e
(Colin Watson). - Emit
.TP
or.HP
if the paragraph begins with a strong element.
- Improve detection of tagged paragraphs.
- Support emitted a hanging paragraph (
.HP
) for command synopsis lines. - Strip leading whitespace from each line of emitted text.
- Initial release:
- Converts markdown to roff:
- Supports codespans, emphasis and strong fonts.
- Supports normal and tagged paragraphs.
- Supports bullet lists.
- Supports multi-paragraph list items and blockquotes.
- Supports horizontal rules.
- Supports converting
[bash](man:bash(1))
links into man page references.
- Provides Rake task for converting
man/*.md
into man pages. - Uses the pure-Ruby Kramdown markdown parser.
- Supports Ruby 1.8.x, 1.9.x, 2.0.x, JRuby, Rubinius.
- Converts markdown to roff: