Fix admonitions invoked with #+begin_
parent
d7ecf839ad
commit
d8cf56bb1f
|
@ -20,10 +20,9 @@ $( document ).ready(function() {
|
|||
|
||||
$(function() {
|
||||
function replace_admonition (tag, readable) {
|
||||
$(`.${tag}:not(#table-of-contents *)`)
|
||||
.parent().parent().replaceWith(function() {
|
||||
return `<p id='${this.id}' class='admonition-title ${tag}'>${readable}</p>`
|
||||
});
|
||||
$(`span.${tag}:not(#table-of-contents *)`) .parent().parent()
|
||||
.replaceWith(`<p id='${this.id}' class='admonition-title ${tag}'>${readable}</p>`);
|
||||
$(`div.${tag}`).before(`<p class='admonition-title ${tag}'>${readable}</p>`)
|
||||
}
|
||||
replace_admonition('note', 'Note');
|
||||
replace_admonition('seealso', 'See also');
|
||||
|
|
|
@ -1491,10 +1491,9 @@ $( document ).ready(function() {
|
|||
|
||||
$(function() {
|
||||
function replace_admonition (tag, readable) {
|
||||
$(`.${tag}:not(#table-of-contents *)`)
|
||||
.parent().parent().replaceWith(function() {
|
||||
return `<p id='${this.id}' class='admonition-title ${tag}'>${readable}</p>`
|
||||
});
|
||||
$(`span.${tag}:not(#table-of-contents *)`) .parent().parent()
|
||||
.replaceWith(`<p id='${this.id}' class='admonition-title ${tag}'>${readable}</p>`);
|
||||
$(`div.${tag}`).before(`<p class='admonition-title ${tag}'>${readable}</p>`)
|
||||
}
|
||||
replace_admonition('note', 'Note');
|
||||
replace_admonition('seealso', 'See also');
|
||||
|
|
Loading…
Reference in New Issue