Commit 1d5047df37aacc900f8270b1c6215028f6988eb1

Valtteri Laitinen 2017-06-05T13:31:23

Support HTML entities in attribute values (#1143) * Support HTML entities in attribute values * Remove duplication

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/components/prism-markup.js b/components/prism-markup.js
index e7a65ba..56b43a1 100644
--- a/components/prism-markup.js
+++ b/components/prism-markup.js
@@ -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) {