discord-markdown
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -0,1 +1,7 @@ | ||
# [2.4.1](https://github.com/brussell98/discord-markdown/compare/v2.4.0...v2.4.1) (2020-09-23) | ||
### Fixes | ||
- Removed unneeded end tag for emoji images | ||
# [2.4.0](https://github.com/brussell98/discord-markdown/compare/v2.3.1...v2.4.0) (2020-08-25) | ||
@@ -2,0 +8,0 @@ |
@@ -217,3 +217,3 @@ const markdown = require('simple-markdown'); | ||
alt: `:${node.name}:` | ||
}, state); | ||
}, false, state); | ||
} | ||
@@ -220,0 +220,0 @@ }, |
{ | ||
"name": "discord-markdown", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"description": "A markdown parser for Discord messages", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -44,3 +44,3 @@ const markdown = require('../index'); | ||
expect(markdown.toHTML('heh <:blah:1234>')) | ||
.toBe('heh <img class="d-emoji" src="https://cdn.discordapp.com/emojis/1234.png" alt=":blah:"></img>'); | ||
.toBe('heh <img class="d-emoji" src="https://cdn.discordapp.com/emojis/1234.png" alt=":blah:">'); | ||
}); | ||
@@ -75,3 +75,3 @@ | ||
expect(markdown.toHTML('heh <a:blah:1234>', )) | ||
.toBe('heh <img class="d-emoji d-emoji-animated" src="https://cdn.discordapp.com/emojis/1234.png" alt=":blah:"></img>'); | ||
.toBe('heh <img class="d-emoji d-emoji-animated" src="https://cdn.discordapp.com/emojis/1234.png" alt=":blah:">'); | ||
}); | ||
@@ -78,0 +78,0 @@ |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1028774
0