No README.md, md significa markdown
. Eu encontrei um script que pode ajudá-lo a ver os arquivos marcados.
import os
import sys
MARKDOWN = 'markdown'
UPSKIRT = 'upskirt'
PROGRAM = MARKDOWN
VERBOSE = True
def main():
update = False
if len(sys.argv) < 2:
print "Usage: {0} <file.markdown> [-u]".format(sys.argv[0])
sys.exit(1)
# else
if '-u' in sys.argv:
update = True
sys.argv.remove('-u')
input_file = sys.argv[1]
os.system("{program} {input} > /tmp/markdown.html".format(program=PROGRAM, input=input_file))
if not update:
os.system("chromium-browser /tmp/markdown.html &")
if VERBOSE:
print >>sys.stderr, "# renderer: {0}".format(PROGRAM)
#############################################################################
if __name__ == "__main__":
main()
Como usar isso:
put it in your ~/bin directory (make sure ~/bin is in your PATH), make it executable (chmod u+x ~/bin/markdown.py), and call it as “markdown.py README.markdown“. It will open the HTML output in a new tab. Adding the “-u” switch (update), the HTML is not opened in the browser.
crédito vai aqui: ubuntuincident.wordpress.com