they show up in nested element; I was not carrying the m-e reference#
inside the footnotes structure, but was instead carrying it in the
parent structure and not updating it. So I changed the footnotes structure
to include the reference + the list of footnotes, which made the misnumbering
go away on my tests.
The following syntax should now be valid:
```lang
CODE HERE
```
And generates:
<pre><code class="lang">CODE HERE
</code></pre>
This syntax allows support for GitHub Flavored Markdown style
fenced code blocks used on [GitHub][1].
[1]: https://help.github.com/articles/github-flavored-markdown
monster bodge. It's no shorter, but it's a little bit clearer, I
hope, and now I can revisit it and rework the whole link name gathering
scheme if need be.
functions `mkd_generatexml()` [write the xml'ed version of a
string to a file] and `mkd_xml()` [write the xml'ed version of
a string into `malloc()`ed memory]
Also move `mkd_text()` into mkdio.c, and put the new xml functions
into their own module.
meant that it was also stripping all multibyte utf-8 from the output.
Since all the parts of a multibyte utf-8 character have bit 0x80 set,
pass those characters through.
is `>%ident%`, `>%id:ident%`, or `>%class:ident%`, treat the block as
a `<div>` with id="_ident_" or class="_ident_" (if `id:` or `class:`
is not specified, default to `class`.
The new option --enable-div turns this feature on.
Also add the new option --enable-all, which turns on all optional
features EXCEPT for tabstop=N (because a number has to be specified
for that.)