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