Link problems : Markdown versus latex2wp.py
As John Baez (and hopefully others) noticed most links here on NeB are now screwed up.
For years I've used the Markdown syntax to include links in posts (that is something like [this is what you see](and here is the URL)). NeB used an older version ( Version 1.0.1k) of php Markdown to convert these to proper links (as I did have problems with the newer version).
Ever since the Return to LaTeX post, I'm trying to re-educate myself to write posts in LaTeX and convert them into wp-format using the Latex2WP python script.
Unfortunately this script doesn't go together nicely with the Markdown-syntax, forcing me to go over the converted latex-file almost line by line fixing errors in order to be able to post. Not the time-saver I had in mind...
I hope to post a lot of new material once the semester finishes and therefore disabled the Markdown-plugin. This causes all links to remain in Markdown-format, which is a nuisance but, if you really want to follow the link it is still there for you to copy-paste. Depending on how exciting the christmas-break will be I'll try to hard-code the links in some of the more popular posts.
If someone knows of an elegant solution, such as a micro-markdown wp-plugin only parsing links, please drop a comment.
UPDATE : I have downloaded the Markdown quicktags plugin. It replaces the standard HTML-editor of Wordpress with a Markdown-editor. There is an option "Render" which transforms Markdown to HTML and then updating the post will save the HTML-version. This looks like a relative quick way to get my old post-links back. So far, I've rescued the posts of the last year, more later. Hopefully, this causes no overload in your RSS-aggregator...
Comments
Luca Trevisan (not verified)
Tue, 12/07/2010 - 10:13
Permalink
I could send you a modified latex2wp script. If I understand it correctly, you would want the processed output to have links formatted in the markdown syntax and not in HTML? And this would have to include all latex formulas, which are links to images in wordpress. But what about formatting commands for bold or emphasized text, lists and so on? Is it ok that they be in HTML or is there a special markdown syntax for them too?
Luca
lieven
Tue, 12/07/2010 - 11:41
Permalink
Luca,
thanks for the offer but NO there's nothing i want to change to latex2wp.py
The problem is that, before i used to latex my posts, i used Markdown for my links (nowadays i use the href{}{} command). The problem is that when i have the Markdown-plugin activated and feed it a latex2wp-output i dont get my file processed (probably to do with under-scores in latex-formulas and possibly other mistakes).
so, i want to keep on using latex2wp as it is and therefore have deactivated markdown-parsing.
i was looking for a quick fix (a sort of micro-markdown plugin for wp) only parsing markdown-links to regular HTML-links.
Carter Schonwald (not verified)
Tue, 12/07/2010 - 19:35
Permalink
you might want to check out pandoc, its a nice tool that pretty generically lets you intermix markdown and basic latex (plus other things too)
Add new comment