Skip to content

Commit

Permalink
feat(core/markdown): apply 'nolinks' on all elements
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Feb 1, 2017
1 parent cee4805 commit e050434
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/core/markdown.js
Expand Up @@ -270,8 +270,8 @@ define([
.replace(/\n\s*&quot;</mg, " &quot;<");
var beautifulHTML = beautify.html_beautify(cleanHTML, beautifyOps);
newBody.innerHTML = beautifulHTML;
// Remove links where class pre.nolinks
substituteWithTextNodes(newBody.querySelectorAll("pre.nolinks a[href]"));
// Remove links where class .nolinks
substituteWithTextNodes(newBody.querySelectorAll(".nolinks a[href]"));
// Restructure the document properly
var fragment = structure(newBody, doc);
// Frankenstein the whole thing back together
Expand Down

0 comments on commit e050434

Please sign in to comment.