mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-18 17:50:06 +00:00
Update hugo-learn.js
This commit is contained in:
parent
16782b2425
commit
426ad13f85
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ jQuery(document).ready(function() {
|
||||||
$(e.trigger).attr('aria-label', 'Link copied to clipboard!').addClass('tooltipped tooltipped-s');
|
$(e.trigger).attr('aria-label', 'Link copied to clipboard!').addClass('tooltipped tooltipped-s');
|
||||||
});
|
});
|
||||||
$('code.language-mermaid').each(function(index, element) {
|
$('code.language-mermaid').each(function(index, element) {
|
||||||
var content = $(element).html().replace(/->>/g, '->>').replace(/<<-/g, '<<-').replace(/->/g, '->').replace(/<-/g, '<-').replace(/&/g, '&');
|
var content = $(element).html().replace(/&/g, '&');
|
||||||
$(element).parent().replaceWith('<div class="mermaid" align="center">' + content + '</div>');
|
$(element).parent().replaceWith('<div class="mermaid" align="center">' + content + '</div>');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue