<commit_before>{#=== OPTIONS ========================================================================================================#}

{% set option = {
    class:     ('form-control ' ~ field.class)|trim,
    height:    field.height|default('300px'),
    label:     field.label,
    required:  field.required|default(false),
    errortext: field.error|default(''),
    info:      field.info|default('info.markdown')
} %}

{#=== INIT ===========================================================================================================#}

{% set ukkit_conf = {
    height:    option.height,
    lblMarkedview:  __('field.markdown.label.markedview'),
    lblPreview:  __('field.markdown.label.preview'),
    markdown:  true,
    markedOptions: {
        breaks: false,
    },
    toolbar:   ['bold', 'italic', 'link', 'image', 'blockquote', 'listUl', 'listOl'],
} %}

{% set attributes = {
    text: {
        class:               option.class,
        data_errortext:      option.errortext,
        data_uk_htmleditor:  ukkit_conf|json_encode,
        id:                  key,
        name:                name,
        required:            option.required,
        style:               (option.height) ? 'height: ' ~ option.height ~ ' !important;' : '',
    }
} %}

{#=== FIELDSET =======================================================================================================#}

{% extends '_base/_fieldset.twig' %}

{% block fieldset_type 'markdown' %}

{% block fieldset_label_text  labelkey %}
{% block fieldset_label_info  option.info %}
{% block fieldset_label_class 'col-xs-12' %}
{% block fieldset_label_for   key %}<commit_msg>Indent<commit_after>{#=== OPTIONS ========================================================================================================#}

{% set option = {
    class:     ('form-control ' ~ field.class)|trim,
    height:    field.height|default('300px'),
    label:     field.label,
    required:  field.required|default(false),
    errortext: field.error|default(''),
    info:      field.info|default('info.markdown')
} %}

{#=== INIT ===========================================================================================================#}

{% set ukkit_conf = {
    height:         option.height,
    lblMarkedview:  __('field.markdown.label.markedview'),
    lblPreview:     __('field.markdown.label.preview'),
    markdown:       true,
    markedOptions:  {
                        breaks: false,
                    },
    toolbar:        ['bold', 'italic', 'link', 'image', 'blockquote', 'listUl', 'listOl'],
} %}

{% set attributes = {
    text: {
        class:               option.class,
        data_errortext:      option.errortext,
        data_uk_htmleditor:  ukkit_conf|json_encode,
        id:                  key,
        name:                name,
        required:            option.required,
        style:               (option.height) ? 'height: ' ~ option.height ~ ' !important;' : '',
    }
} %}

{#=== FIELDSET =======================================================================================================#}

{% extends '_base/_fieldset.twig' %}

{% block fieldset_type 'markdown' %}

{% block fieldset_label_text  labelkey %}
{% block fieldset_label_info  option.info %}
{% block fieldset_label_class 'col-xs-12' %}
{% block fieldset_label_for   key %}
{'fraction_non_alphanumeric': 0.315035799522673, 'fraction_numerical': 0.0029832935560859188, 'mean_word_length': 3.0890243902439023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4931410', 'n_tokens_mistral': 987, 'n_tokens_neox': 884, 'n_words': 154}