Update hugo-learn.js

This commit is contained in:
Massimeddu Cireddu 2018-12-28 11:03:47 +01:00 committed by Matthew Taylor
parent 16782b2425
commit 426ad13f85

View file

@ -85,7 +85,7 @@ jQuery(document).ready(function() {
$(e.trigger).attr('aria-label', 'Link copied to clipboard!').addClass('tooltipped tooltipped-s');
});
$('code.language-mermaid').each(function(index, element) {
var content = $(element).html().replace(/-&gt;&gt;/g, '->>').replace(/&lt;&lt;-/g, '<<-').replace(/-&gt;/g, '->').replace(/&lt;-/g, '<-').replace(/&amp;/g, '&');
var content = $(element).html().replace(/&amp;/g, '&');
$(element).parent().replaceWith('<div class="mermaid" align="center">' + content + '</div>');
});
});