<commit_before>{% import "_includes/forms" as forms %}

{% set name		= craft.doxter.getName(true) %}
{% set alias	= craft.doxter.getName() %}
{% set version	= craft.doxter.getVersion() %}

{% block content %}
	<div class="doxterSettings">
		<h2>{{ name }} <span class="subtle">V{{ version }} {% if alias != name %}AKA ({{ alias }}){% endif %}</span></h2>
		<p>
			<em>{{ name }}</em> is a <strong>markdown</strong> plugin designed to improve the way you write documentation
		</p>

		<div class="doxterSection">
			<h3 class="ico syntax">Parsing Settings</h3>
			<p>Enable <a href="http://buildwithcraft.com/docs/reference-tags" title="Reference Tags">Reference Tag</a> Parsing?</p>
			<p class="subtle">This tells Doxter to parse reference tags</p>
			{{
				forms.lightswitch({
					name:	"parseReferenceTags",
					on:		settings.parseReferenceTags
				})
			}}
			<p>Enable Header Parsing?</p>
			<p class="subtle">
				This tells Doxter to parse headers and make them linkable without requiring the
				<a href="https://github.com/pixelandtonic/Anchors" title="Anchors Plugin">Anchors Plugin</a>
			</p>
			{{
				forms.lightswitch({
					name:	"addHeaderAnchors",
					on:		settings.addHeaderAnchors
				})
			}}
			<hr>
			<p>Headers To Parse</p>
			<p class="subtle">This tells Doxter what headers to parse if header parsing is enabled.</p>
			<div class="checkboxGroup">
				{{
					forms.checkboxGroup({
						id:				"addHeaderAnchorsTo",
						name:			"addHeaderAnchorsTo",
						label:			"Headers To Parse" | t,
						instructions:	"Check the headers you want to make linkable by default."|t,
						options:		{"h1": "H1", "h2": "H2", "h3": "H3", "h4": "H4", "h5": "H5", "h6": "H6"},
						values:			settings.addHeaderAnchorsTo,
						errors:			""
					})
				}}
			</div>
			<hr>
			{{
				forms.textareaField({
					id:				"codeBlockSnippet",
					name:			"codeBlockSnippet",
					class:			"code codeBlockSnippet",
					rows:			5,
					label:			"Code Block Snippet",
					instructions:	"A snippet to wrap fenced code blocks for your syntax highlighter to use.",
					value:			settings.codeBlockSnippet,
					error:			""
				})
			}}

			<button class="addPrismSnippetBtn btn" data-highlighter="PrismJs">PrismJs</button>
			<button class="addRainbowSnippetBtn btn" data-highlighter="RainbowJs">RainbowJs</button><commit_msg>Removes hr in settings section to combine all parsing settings.<commit_after>{% import "_includes/forms" as forms %}

{% set name		= craft.doxter.getName(true) %}
{% set alias	= craft.doxter.getName() %}
{% set version	= craft.doxter.getVersion() %}

{% block content %}
	<div class="doxterSettings">
		<h2>{{ name }} <span class="subtle">V{{ version }} {% if alias != name %}AKA ({{ alias }}){% endif %}</span></h2>
		<p>
			<em>{{ name }}</em> is a <strong>markdown</strong> plugin designed to improve the way you write documentation
		</p>

		<div class="doxterSection">
			<h3 class="ico syntax">Parsing Settings</h3>
			<p>Enable <a href="http://buildwithcraft.com/docs/reference-tags" title="Reference Tags">Reference Tag</a> Parsing?</p>
			<p class="subtle">This tells Doxter to parse reference tags</p>
			{{
				forms.lightswitch({
					name:	"parseReferenceTags",
					on:		settings.parseReferenceTags
				})
			}}
			<p>Enable Header Parsing?</p>
			<p class="subtle">
				This tells Doxter to parse headers and make them linkable without requiring the
				<a href="https://github.com/pixelandtonic/Anchors" title="Anchors Plugin">Anchors Plugin</a>
			</p>
			{{
				forms.lightswitch({
					name:	"addHeaderAnchors",
					on:		settings.addHeaderAnchors
				})
			}}
			<p>Headers To Parse</p>
			<p class="subtle">This tells Doxter what headers to parse if header parsing is enabled.</p>
			<div class="checkboxGroup">
				{{
					forms.checkboxGroup({
						id:				"addHeaderAnchorsTo",
						name:			"addHeaderAnchorsTo",
						label:			"Headers To Parse" | t,
						instructions:	"Check the headers you want to make linkable by default."|t,
						options:		{"h1": "H1", "h2": "H2", "h3": "H3", "h4": "H4", "h5": "H5", "h6": "H6"},
						values:			settings.addHeaderAnchorsTo,
						errors:			""
					})
				}}
			</div>
			<hr>
			{{
				forms.textareaField({
					id:				"codeBlockSnippet",
					name:			"codeBlockSnippet",
					class:			"code codeBlockSnippet",
					rows:			5,
					label:			"Code Block Snippet",
					instructions:	"A snippet to wrap fenced code blocks for your syntax highlighter to use.",
					value:			settings.codeBlockSnippet,
					error:			""
				})
			}}

			<button class="addPrismSnippetBtn btn" data-highlighter="PrismJs">PrismJs</button>
			<button class="addRainbowSnippetBtn btn" data-highlighter="RainbowJs">RainbowJs</button>
{'fraction_non_alphanumeric': 0.15640916808149405, 'fraction_numerical': 0.007215619694397283, 'mean_word_length': 3.3598519888991674, 'pattern_counts': {'":': 12, '<': 78, '<?xml version=': 0, '>': 78, 'https://': 2, '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': '2191906', 'n_tokens_mistral': 2030, 'n_tokens_neox': 1616, 'n_words': 405}