Fix backlink inlining removing its container.
This commit is contained in:
parent
fae315d2c9
commit
2c2aa309c7
@ -2048,6 +2048,9 @@
|
|||||||
if (el = d.getElementById(id)) {
|
if (el = d.getElementById(id)) {
|
||||||
inline = quoteInline.table(id, el.innerHTML);
|
inline = quoteInline.table(id, el.innerHTML);
|
||||||
if (this.className === 'backlink') {
|
if (this.className === 'backlink') {
|
||||||
|
if ($("a.backlink[href='#" + id + "']", el)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$.after(this.parentNode, inline);
|
$.after(this.parentNode, inline);
|
||||||
$.hide($.x('ancestor::table[1]', el));
|
$.hide($.x('ancestor::table[1]', el));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -4,6 +4,7 @@ github
|
|||||||
- fix remember updater's interval settings
|
- fix remember updater's interval settings
|
||||||
- fix wrong keybind input in options
|
- fix wrong keybind input in options
|
||||||
- fix time preview
|
- fix time preview
|
||||||
|
- fix backlink inlining removing its container
|
||||||
|
|
||||||
2.16.1
|
2.16.1
|
||||||
- mayhem:
|
- mayhem:
|
||||||
|
|||||||
@ -1592,6 +1592,7 @@ quoteInline =
|
|||||||
if el = d.getElementById id
|
if el = d.getElementById id
|
||||||
inline = quoteInline.table id, el.innerHTML
|
inline = quoteInline.table id, el.innerHTML
|
||||||
if @className is 'backlink'
|
if @className is 'backlink'
|
||||||
|
return if $("a.backlink[href='##{id}']", el)
|
||||||
$.after @parentNode, inline
|
$.after @parentNode, inline
|
||||||
$.hide $.x 'ancestor::table[1]', el
|
$.hide $.x 'ancestor::table[1]', el
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user