Descargué node.js en mi ubuntu 11.10. Cuando lo descomprimí y pretendí abrir README.md, me indica que "no hay ninguna aplicación instalada para los archivos rom de génesis". Por favor ayúdame compartiendo la respuesta.
Respuesta1
En README.md, md significa markdown
. Encontré un script que puede ayudarle a ver los archivos de rebajas.
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 esto :
colóquelo en su directorio ~/bin (asegúrese de que ~/bin esté en su RUTA), hágalo ejecutable (chmod u+x ~/bin/markdown.py) y llámelo como "markdown.py README.markdown". Abrirá la salida HTML en una nueva pestaña. Al agregar el modificador “-u” (actualización), el HTML no se abre en el navegador.
el credito va aqui: ubuntuincident.wordpress.com