diff --git a/src/asciidoctor-emoji.js b/src/asciidoctor-emoji.js
index d4eb525..ee61e09 100644
--- a/src/asciidoctor-emoji.js
+++ b/src/asciidoctor-emoji.js
@@ -21,7 +21,7 @@ function emojiInlineMacro () {
const emojiUnicode = twemojiMap[target]
if (emojiUnicode) {
return self.createInline(parent, 'image', '', {
- target: `https://twemoji.maxcdn.com/2/svg/${emojiUnicode}.svg`,
+ target: `https://cdn.jsdelivr.net/npm/twemoji@latest/2/svg/${emojiUnicode}.svg`,
type: 'emoji',
attributes: {
alt: target,
diff --git a/test/test.js b/test/test.js
index aa7b086..dd42a03 100644
--- a/test/test.js
+++ b/test/test.js
@@ -37,7 +37,7 @@ describe('Conversion', () => {
const registry = asciidoctor.Extensions.create()
asciidoctorEmoji.register(registry)
const html = asciidoctor.convert(input, { extension_registry: registry })
- expect(html).to.contain('')
+ expect(html).to.contain('')
})
it('should return an error message if the emoji does not exist', () => {
const input = 'emoji:ooops[]'
@@ -52,21 +52,21 @@ describe('Conversion', () => {
const registry = asciidoctor.Extensions.create()
asciidoctorEmoji.register(registry)
const html = asciidoctor.convert(input, { extension_registry: registry })
- expect(html).to.contain('')
+ expect(html).to.contain('')
})
it('should convert an existing emoji into an image with the size 4x (68px)', () => {
const input = 'emoji:beetle[4x]'
const registry = asciidoctor.Extensions.create()
asciidoctorEmoji.register(registry)
const html = asciidoctor.convert(input, { extension_registry: registry })
- expect(html).to.contain('')
+ expect(html).to.contain('')
})
it('should convert an existing emoji into an image with the size in pixel (42px)', () => {
const input = 'emoji:penguin[42px]'
const registry = asciidoctor.Extensions.create()
asciidoctorEmoji.register(registry)
const html = asciidoctor.convert(input, { extension_registry: registry })
- expect(html).to.contain('')
+ expect(html).to.contain('')
})
it('should convert an existing emoji into an inline image', () => {
const input = 'emoji:black_circle[]'