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 = [
'---',

View File

@@ -13,7 +13,7 @@
"doc": "node lib/main/build-doc github && npm run test:doc",
"doc:fp": "node lib/fp/build-doc",
"doc:site": "node lib/main/build-doc site",
"doc:sitehtml": "optional-dev-dependency marky-markdown@^7.0.2 && npm run doc:site && node lib/main/build-site",
"doc:sitehtml": "optional-dev-dependency marky-markdown@^8.0.0 && npm run doc:site && node lib/main/build-site",
"pretest": "npm run build",
"style": "npm run style:main && npm run style:fp && npm run style:perf && npm run style:test",
"style:fp": "jscs fp/*.js lib/**/*.js",