I am getting the error: attempt to index a nil value (field 'attributes') when trying to add a class to a Para element.
The documentation https://pandoc.org/lua-filters.html#pandoc.para seems to suggest that para (and BulletList) only have a content part but no attributes part. So how to add a class to these elements?
Filter:
Para = function (el)
el.attributes['class']='lead'
return el
end
Sample:
# this is the title
Lead text for this section
Expected result:
<p class="lead">Lead text for this section</p>