Skip to content

Commit

Permalink
Support HTML entities in attribute values (#1143)
Browse files Browse the repository at this point in the history
* Support HTML entities in attribute values

* Remove duplication
  • Loading branch information
valtlai authored and LeaVerou committed Jun 5, 2017
1 parent 07a6806 commit 1d5047d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/prism-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ Prism.languages.markup = {
'entity': /&#?[\da-z]{1,8};/i
};

Prism.languages.markup['tag'].inside['attr-value'].inside['entity'] =
Prism.languages.markup['entity'];

// Plugin to make entity title show the real entity, idea by Roman Komarov
Prism.hooks.add('wrap', function(env) {

Expand Down

0 comments on commit 1d5047d

Please sign in to comment.