Closed brycv closed 7 years ago
I've been thinking about it. Basically, having an extra step where a markdown file is converted to HTML5 on-the-fly. You can do it now with any markdown-HTML formatter, but getting the correct <article data-sblg-article="1">
needs to be in there. There are a number of C interfaces for Markdown that can be used pretty easily, I think.
That would be fantastic!
As a quick fix, I just took the output of hoedown and wrapped it:
( echo "<article data-sblg-article=\"1\"> ;
hoedown --xhtml README.md ;
echo "</article>" ) > README.xml
sblg -t template.xml -c README.xml
Any markdown converter should do.
I'll try that. Thanks!
I am going to try discount. It is written in C and seems to be reasonable.
I talked to @michaeldexter about sblg recently and he said you might be open to markdown as a format for articles. I have an existing site using octopress but it is too complex and I want something simpler. It looks like sblg is exactly what I am looking for but I prefer markdown and have hundreds of posts that are currently in markdown. I am happy to change things around but still enjoy writing in markdown if possible. Is that something you would consider?