Update marky-markdown.

This commit is contained in:
John-David Dalton
2016-08-02 00:16:07 -07:00
parent efee02ace7
commit 669b76bf99
2 changed files with 8 additions and 2 deletions

View File

@@ -28,11 +28,17 @@ function build(type) {
.attr('class', null)
.attr('id', null);
$(':header > a[href]').each(function() {
$(':header:not(h3) > a').each(function() {
var $a = $(this);
$a.replaceWith($a.html());
});
// Fix marky-markdown wrapping of sibling anchors.
$('h3 ~ a').each(function() {
var $a = $(this);
$a.nextAll('p').first().append($a);
});
// Append YAML front matter.
var html = [
'---',