If there was a mechanism to,
- Opt-into Markdown documentation on a per-file basis.
- Document your code with Markdown instead instead of POD
Assuming these concerns were met,
- A call to
perldoc MyModule
rendered the Markdown to text with something likemdcat
which supports images, links - No browser was required at all (
mdcat
works without a browser). - Support for terminal-rendering of Markdown was a part of core.
- All of this was done merely by creating a distinction between a code-comment, and a doc-comment as demonstrated in this repo, where
- A doc comment was marked with a line starting
##
- Any other use of
#
continues to carry code-commenting semantics
- A doc comment was marked with a line starting
Would you prefer it and use it?
submitted by /u/EvanCarroll
[link] [comments]
GitHub - swsnr/mdcat: cat for markdown
cat for markdown. Contribute to swsnr/mdcat development by creating an account on GitHub.GitHub