<commit_before>---
layout: page
title: Markdown
---

<div class="demo-container no-overflow">
	<p>The following text was written in Markdown and converted using the component.</p>

	<rg-markdown></rg-markdown>
</div>

<script src="commonmark.js"></script>
<script>
	var tags = riot.mount('rg-markdown', {
		markdown: {
			url: 'helptext.md'
		}
	})
	tags[0].on('loaded', function () {
		hljs.initHighlighting.called = false;
		hljs.initHighlighting();
	})
</script><commit_msg>Changed commonmark depdency to markdown-it<commit_after>---
layout: page
title: Markdown
---

<div class="demo-container no-overflow">
	<p>The following text was written in Markdown and converted using the component.</p>

	<rg-markdown>
		# Headings!
		And regular *bold* text and so _much more_!
	</rg-markdown>
</div>

<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/8.3.0/markdown-it.min.js"></script>
<script>
	var tags = riot.mount('rg-markdown') ;
	tags[0].on('loaded', alert('Your markdown text has been loaded!'))
</script>
{'fraction_non_alphanumeric': 0.1708984375, 'fraction_numerical': 0.0048828125, 'mean_word_length': 4.366492146596858, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 1, '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': '887967', 'n_tokens_mistral': 376, 'n_tokens_neox': 347, 'n_words': 86}