diff options
author | Blaise | 2022-10-28 15:17:54 -0500 |
---|---|---|
committer | Blaise | 2022-10-28 15:37:37 -0500 |
commit | fe66d09173f5e8e077e8e385f21dfd12db1123df (patch) | |
tree | e697512d8ac28b4342a043f0369ba4cdcea792a8 | |
parent | 8a627ecc1ed37e82d2f48c08204923d4734127b1 (diff) |
Only style code tags
-rw-r--r-- | microlight.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/microlight.js b/microlight.js index 5aa193a..917b593 100644 --- a/microlight.js +++ b/microlight.js | |||
@@ -36,9 +36,9 @@ | |||
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | var reset = function(cls) { | 39 | var reset = function() { |
40 | // nodes to highlight | 40 | // nodes to highlight |
41 | microlighted = _document.getElementsByClassName(cls||'microlight'); | 41 | microlighted = _document.querySelectorAll('code'); |
42 | 42 | ||
43 | for (i = 0; el = microlighted[i++];) { | 43 | for (i = 0; el = microlighted[i++];) { |
44 | var text = el.textContent, | 44 | var text = el.textContent, |