Open HiEv opened 3 years ago
Here's a workaround until this is fixed (goes in the JavaScript section):
$(document).on(":passagerender", function (event) {
var clinks = $(event.content).find(".macro-cycle");
if (clinks.length) {
clinks.on("click", function () {
$(this).find("p").contents().unwrap();
});
}
});
Describe the bug. When using the
<<cycle>>
macro with Config.cleanupWikifierOutput enabled, cycle links are changed to paragraphs once you click on them.To Reproduce: Put the following in your JavaScript section:
and this into a passage:
Once you then click on that link it goes from being displayed like this:
to this:
Looking at the HTML, the link gets wrapped in a
<p>
(paragraph) element.Expected behavior: Clicking the
<<cycle>>
link while Config.cleanupWikifierOutput shouldn't cause the link to become a paragraph.Project details: