mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Update marky-markdown.
This commit is contained in:
@@ -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 = [
|
||||
'---',
|
||||
|
||||
Reference in New Issue
Block a user