{% from "macros/form/input_block.html" import input_block %} {% from "macros/form/attributes.html" import attributes %} {# This is a fix of markdown macro #} {% macro markdown(name, id='', label='', value='', placeholder='', error="", classes=[], attrs={'class': 'form-control'}, is_required=false) %} {% set classes = (classes|list) %} {% do classes.append('control-full') %} {% set markdown_tooltip = "

__Bold text__ or _italic text_

# title
## secondary title
### etc

* list
* of
* items

http://auto.link.ed/

Full markdown syntax

Please note: HTML tags are stripped out for security reasons

" %} {%- set extra_html = caller() if caller -%} {% call input_block(id or name, label or name, error, classes, control_classes=["editor"], extra_html=extra_html, is_required=is_required) %} {% trans %}You can use Markdown formatting here{% endtrans %} {% endcall %} {% endmacro %}