Showing posts with label easyblogger. Show all posts
Showing posts with label easyblogger. Show all posts

Wednesday, March 01, 2017

Easyblogger 1.2.4 released to PYPI

Untitled

Just pushed out a minor update v1.2.4 to Easyblogger

This release now let’s you get blog posts by url

# get a post by url
$ easyblogger get -u "https://blog.rraghur.in/2015/06/js-development-2015.html"
658290074469501527,JS development - 2015,http://blog.rraghur.in/2015/06/js-development-2015.html

Monday, February 20, 2017

EasyBlogger now supports pandoc filters

I just pushed version 1.1.0 of EasyBlogger to pypi. Notable changes are that it now exposes ability to set pandoc filters.

Pandoc filters basically let you write plugins that can affect the document conversion. For example, my filter - mermaid-filter will let you embed diagrams in text using mermaid syntax and then when you convert a markdown document, generate a .png file on the fly, upload it to imgur and embed the link in the generated HTML file - so that your final HTML shows the image and not a fenced code block!

A quick example - with markdown like this

~~~mermaid
graph TD
    A --> B
~~~

note that you must specify that it’s a mermaid syntax with ~~~mermaid as the start of your code block

You get an image like this in your blog:

In fact, even this blog post was generated from mermaid source itself :)

Goes without saying that this isn’t limited to mermaid-filter - you can use any of the other pandoc filters that are available to generate/filter your blog markup!

Hope you like it as much as I do!