webplatform / mediawiki-conversion

Convert MediaWiki XML backup into structured raw text file tree
https://github.com/webplatform/docs
15 stars 4 forks source link

During conversion, when can't find first h1, front matter title should remain the one it had #23

Closed renoirb closed 8 years ago

renoirb commented 8 years ago

In generated HTML, the {{title}} doesn't get applied in some situations. Why.

On this page Beginners/the_beginning you can't see the first title, it becomes like this:

<!-- ... -->
              <h1></h1>
<!-- ... -->

Even though the front matter has a title.

renoirb commented 8 years ago

Issue was that some titles may contain columns ":" and would break markdown front matter. Fixed by escaping the title.