Skip to content

Commit

Permalink
Keep markup plugin: Store highlightedCode after reinserting markup. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed May 8, 2017
1 parent 70cb472 commit 6df2ceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions plugins/keep-markup/prism-keep-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@
pos: 0
});
});
// Store new highlightedCode for later hooks calls
env.highlightedCode = env.element.innerHTML;
}
});
}());
2 changes: 1 addition & 1 deletion plugins/keep-markup/prism-keep-markup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6df2ceb

Please sign in to comment.