Command Line HTML Output...

charlie's Avatar


01 May, 2012 07:11 PM

Is there a way or plans to implement the ability to invoke marked from the command line and export the output to a new file? Something like this:
$ cat > marked --html_out=[ somefile.html | somefolder ]

Maybe even use the default CSS you have defined in marked.

I keep a ton of stuff in nvALT, some of which I'd like to toss up to a web server on a nightly basis. Specifically, journal entries. I keep personal and work journals for each day in nvALT. A cronjob to process the markdown into HTML could dump the output into a folder and that folder could be rsynced to a web server.

  1. Support Staff 1 Posted by Brett on 01 May, 2012 07:33 PM

    Brett's Avatar

    There are plans to extend that `mark` utility that's currently embedded, yes, but there's no timeline set for that development yet. I'd recommend using a script on a launchd or cron process that incorporates a processor like pandoc or possibly discount which can include CSS in the output.

  2. 2 Posted by zabouti on 28 May, 2012 01:19 PM

    zabouti's Avatar

    I would like this, too, for the same reasons as charlie's. Guess I'll look again at pandoc...


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac