marcmagus: (regexp)
2009-04-14 04:14 am
Entry tags:

JLJ, vim syntax, and Markdown

I . . . really don't want to admit how much time I just spent fixing my vim syntax files for jlj and markdown so they work the way I want them to.

All because something about the way they were interacting with one another was making it treat ' as the beginning of a quoted string, so, for instance, everything after the ' in don't until the next ' somewhere would get highlighted bright magenta, making it hard to tell what was going on and interfering with other highlighting.

The time consuming thing, beside tracking down what was causing that, was that I wasn't happy with the way the mkd.vim I picked up off vim.org handled "reference-style" links.

At least it's working in a way I don't hate now. I'll say again, this Markdown thing is pretty cool. Something out there has probably made it completely obsolete by now.

Ah, shoot; I just remembered I'm not happy with the way the markdown syntax handles emphasis and strong. Work to do sometime.

marcmagus: Me playing cribbage in regency attire (Default)
2009-04-02 03:54 pm
Entry tags:

JLJ Markdown Support

As I alluded to in my last post, I've configured JLJ to format my posts using Markdown for conversion to HTML. Getting it set up was a little trickier than I'd expected, due to a flaw in the JLJ documentation.

To get JLJ using Markdown, you must add the following to your .livejournal.rc:

format: external preformatted none jerry
formatter: /usr/bin/markdown

Obviously, you should replace the path if your markdown is installed elsewhere. In theory, I expect one should be able to use an alternate processor; I may try multimarkdown sometime.