scriv icon indicating copy to clipboard operation
scriv copied to clipboard

Make md_header_level available to templates

Open DonalChilde opened this issue 1 year ago • 0 comments

If md_header_level was available as a template variable, then custom sub headers could be added to the entry_title_template.

e.g.

% if version %}[{{ version }}](https://github.com/DonalChilde/aa_pbs_exporter/compare/_previous_version_tag_...{{version}}) — {% endif %} {{ date.strftime('%Y-%m-%d') }}
{{"\n"}}
{{ "#" * md_header_level}} Whats Changed in {{version}}

Note, I don't use jinja much, and the syntax might be bad for the above. But I'm sure that the "#" * md_header_level could be accomplished somehow.

DonalChilde avatar May 30 '23 20:05 DonalChilde