Skip to content

整个划线都带颜色

模板如下:

jinja
{% if isdailynote  %}
## Daily note
{{ highlights | style_dailynote }}
{% else %}
## 划线列表
{% for item in highlights %}
{{ item | style1({prefix:"- ", anno:"\t - ", colorline:true }) }}
{% endfor %}
{% endif %}

划线前带颜色块

模板如下:

jinja
{% if isdailynote  %}
## Daily note
{{ highlights | style_dailynote }}
{% else %}
## 划线列表
{% for item in highlights %}
{{ item | style1({prefix:"- ", anno:"\t - ", color:"█  " }) }}
{% endfor %}
{% endif %}