This is a very simple filter that iterates each line of text and mangles alt="this is the alt|classes here" into alt="this is the alt" class="classes here", eg:
{{ item.content | markdown | imgAltClass }}
Ideally, and IMO, marked should be replaced with something that supports Markdown Extras, so you can use the {.class key=val} stuff, but I think this will suffice for now.
This is a very simple filter that iterates each line of text and mangles
alt="this is the alt|classes here"
intoalt="this is the alt" class="classes here"
, eg:{{ item.content | markdown | imgAltClass }}
Ideally, and IMO, marked should be replaced with something that supports Markdown Extras, so you can use the
{.class key=val}
stuff, but I think this will suffice for now.