$ comrak --escape -t commonmark -t xml
<i>italic text</i>
<i>italic text</i>
<i>
italic text
</i>
$ comrak -t commonmark -t xml
italic text
<!-- raw HTML omitted -->italic text<!-- raw HTML omitted -->
<i>
italic text
</i>
$ comrak --escape -t commonmark -t xml
<script>
alert('xyz');
</script>
Possibly <marquee>annoying</marquee>.
Dangerous.
Safe.
<script>
alert('xyz');
</script>
Possibly
<marquee>
annoying
</marquee>
.
Dangerous
.
Safe
.
$ comrak --escape --unsafe -t commonmark -t xml
<script>
alert('xyz');
</script>
Possibly <marquee>annoying</marquee>.
Dangerous.
Safe.
<script>
alert('xyz');
</script>
Possibly
<marquee>
annoying
</marquee>
.
Dangerous
.
Safe
.