diff --git a/README.md b/README.md
index c779d99..06ba60a 100644
--- a/README.md
+++ b/README.md
@@ -98,7 +98,7 @@ Alias code language name to treat as kroki code block, meta.type will be ignored
- type: string
- default: `'img-base64'`
-- enum: `['inline-svg', 'img-base64', 'object-base64']`
+- enum: `['inline-svg', 'img-base64', 'img-html-base64', 'object-base64']`
How to embed SVG as image. See the different and risk on [Best Way To Embed SVG](https://vecta.io/blog/best-way-to-embed-svg).
diff --git a/lib/transform.mjs b/lib/transform.mjs
index ab2a932..73f0a56 100644
--- a/lib/transform.mjs
+++ b/lib/transform.mjs
@@ -21,6 +21,12 @@ const modes = {
alt || diagramType
}" data="${toDataURL(data)}">Load SVG fail...`;
},
+ 'img-html-base64': ({ node, diagramType, data, alt }) => {
+ node.type = 'html';
+ node.value = ``;
+ },
'inline-svg': ({ node, diagramType, data, alt }) => {
node.type = 'html';
node.value = `
=14.0.0}
peerDependencies:
@@ -119,7 +119,7 @@ packages:
dependencies:
'@babel/core': 7.23.2
'@nicolo-ribaudo/eslint-scope-5-internals': 5.1.1-v1
- eslint: 8.51.0
+ eslint: 8.52.0
eslint-visitor-keys: 2.1.0
semver: 6.3.1
dev: true
@@ -294,21 +294,21 @@ packages:
to-fast-properties: 2.0.0
dev: true
- /@bring-it/npm@0.3.5:
- resolution: {integrity: sha512-CIo8jjXhZJ4Dsqwn6ou7VI5TNWMHOYKUigCzq01iAEUquHHAIhZoyDBc2JOy2HkG3o7kKxfH5E0P/hmx6R2wwA==}
+ /@bring-it/npm@0.3.9:
+ resolution: {integrity: sha512-eZSuIGtDYqPmW16/soKJpU+ZDKRXHnfo4/JGJcgDaL3NkPMPsA6BRigKhzk+N78dtPaCjL2/tJCNf1Q4Pd7wHQ==}
engines: {node: ^16.17.0 || ^18.0.0 || ^20.0.0, npm: '>=9.0.0'}
hasBin: true
dependencies:
yargs: 17.7.2
dev: true
- /@eslint-community/eslint-utils@4.4.0(eslint@8.51.0):
+ /@eslint-community/eslint-utils@4.4.0(eslint@8.52.0):
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
eslint-visitor-keys: 3.4.3
dev: true
@@ -334,16 +334,16 @@ packages:
- supports-color
dev: true
- /@eslint/js@8.51.0:
- resolution: {integrity: sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg==}
+ /@eslint/js@8.52.0:
+ resolution: {integrity: sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
- /@humanwhocodes/config-array@0.11.11:
- resolution: {integrity: sha512-N2brEuAadi0CcdeMXUkhbZB84eskAc8MEX1By6qEchoVywSgXPIjou4rYsl0V3Hj0ZnuGycGCjdNgockbzeWNA==}
+ /@humanwhocodes/config-array@0.11.13:
+ resolution: {integrity: sha512-JSBDMiDKSzQVngfRjOdFXgFfklaXI4K9nLF49Auh21lmBWRLIK3+xTErTWD4KU54pb6coM6ESE7Awz/FNU3zgQ==}
engines: {node: '>=10.10.0'}
dependencies:
- '@humanwhocodes/object-schema': 1.2.1
+ '@humanwhocodes/object-schema': 2.0.1
debug: 4.3.4
minimatch: 3.1.2
transitivePeerDependencies:
@@ -355,8 +355,8 @@ packages:
engines: {node: '>=12.22'}
dev: true
- /@humanwhocodes/object-schema@1.2.1:
- resolution: {integrity: sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==}
+ /@humanwhocodes/object-schema@2.0.1:
+ resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==}
dev: true
/@jridgewell/gen-mapping@0.3.3:
@@ -398,28 +398,28 @@ packages:
stylelint-formatter-pretty: 3.2.1
dev: true
- /@nice-move/eslint-config-base@0.9.22(eslint@8.51.0)(typescript@5.2.2):
+ /@nice-move/eslint-config-base@0.9.22(eslint@8.52.0)(typescript@5.2.2):
resolution: {integrity: sha512-BtKi5CO1BtKr+7LYSDusdU2uQmpa3HfiAoW1pEFWlqE3GzRRti0wrSyDBxcpeEvVD/pDxYl+PwESwuzz0Wf0Pw==}
engines: {node: ^16.15.0 || ^18.12.0}
peerDependencies:
eslint: ^8.50.0
dependencies:
'@babel/core': 7.23.2
- '@babel/eslint-parser': 7.22.15(@babel/core@7.23.2)(eslint@8.51.0)
+ '@babel/eslint-parser': 7.22.15(@babel/core@7.23.2)(eslint@8.52.0)
'@babel/plugin-syntax-import-attributes': 7.22.5(@babel/core@7.23.2)
- '@nice-move/eslint-plugin-html': 0.0.0-beta.3(eslint@8.51.0)
- '@typescript-eslint/eslint-plugin': 6.8.0(@typescript-eslint/parser@6.8.0)(eslint@8.51.0)(typescript@5.2.2)
- '@typescript-eslint/parser': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
- eslint: 8.51.0
- eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.28.1)(eslint@8.51.0)
- eslint-config-prettier: 9.0.0(eslint@8.51.0)
- eslint-plugin-eslint-comments: 3.2.0(eslint@8.51.0)
- eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.8.0)(eslint@8.51.0)
- eslint-plugin-markdown: 3.0.1(eslint@8.51.0)
- eslint-plugin-n: 16.2.0(eslint@8.51.0)
- eslint-plugin-promise: 6.1.1(eslint@8.51.0)
- eslint-plugin-sonarjs: 0.21.0(eslint@8.51.0)
- eslint-plugin-unicorn: 48.0.1(eslint@8.51.0)
+ '@nice-move/eslint-plugin-html': 0.0.0-beta.3(eslint@8.52.0)
+ '@typescript-eslint/eslint-plugin': 6.8.0(@typescript-eslint/parser@6.8.0)(eslint@8.52.0)(typescript@5.2.2)
+ '@typescript-eslint/parser': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
+ eslint: 8.52.0
+ eslint-config-airbnb-base: 15.0.0(eslint-plugin-import@2.28.1)(eslint@8.52.0)
+ eslint-config-prettier: 9.0.0(eslint@8.52.0)
+ eslint-plugin-eslint-comments: 3.2.0(eslint@8.52.0)
+ eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.8.0)(eslint@8.52.0)
+ eslint-plugin-markdown: 3.0.1(eslint@8.52.0)
+ eslint-plugin-n: 16.2.0(eslint@8.52.0)
+ eslint-plugin-promise: 6.1.1(eslint@8.52.0)
+ eslint-plugin-sonarjs: 0.21.0(eslint@8.52.0)
+ eslint-plugin-unicorn: 48.0.1(eslint@8.52.0)
espree: 9.6.1
resolve.exports: 2.0.2
settingz: 0.2.0
@@ -430,21 +430,21 @@ packages:
- typescript
dev: true
- /@nice-move/eslint-plugin-html@0.0.0-beta.3(eslint@8.51.0):
+ /@nice-move/eslint-plugin-html@0.0.0-beta.3(eslint@8.52.0):
resolution: {integrity: sha512-WzTKmdSWM6FsnM0LwsY9ucRw4hczQaN2z/6cVfCXAlrcXl53CUFsuUlF7r4KAKG7jKiAUNmDDATpEbonh9n26g==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
peerDependencies:
eslint: ^8.0.0
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
node-html-parser: 5.4.2
dev: true
- /@nice-move/prettier-config@0.9.6(prettier@3.0.3):
- resolution: {integrity: sha512-kKqSkQ0ZKQbeWDVuLGa8pYlkoZrPu27xbEhk64WHHAQciW67JPVZh8I+MF+21753gGw//Hz65+UbG1dO97lCTQ==}
+ /@nice-move/prettier-config@0.9.7(prettier@3.0.3):
+ resolution: {integrity: sha512-ZIt0EnXAGHG3nqOEpcBmEmCXeoKGAIC2aBtmR9rvZ78eyim8EFZQ3e2sAVRWpFionl3i2PZOTv5PsVngUd9fuQ==}
engines: {node: ^16.15.0 || ^18.12.0}
peerDependencies:
- prettier: ^2.8.8 || ^3.0.1
+ prettier: ^2.8.8 || ^3.0.3
dependencies:
'@nice-move/prettier-plugin-package-json': 0.7.5(prettier@3.0.3)
'@prettier/plugin-xml': 3.2.1(prettier@3.0.3)
@@ -559,7 +559,7 @@ packages:
/@types/unist@3.0.0:
resolution: {integrity: sha512-MFETx3tbTjE7Uk6vvnWINA/1iJ7LuMdO4fcq8UfF0pRbj01aGLduVvQcRyswuACJdpnHgg8E3rQLhaRdNEJS0w==}
- /@typescript-eslint/eslint-plugin@6.8.0(@typescript-eslint/parser@6.8.0)(eslint@8.51.0)(typescript@5.2.2):
+ /@typescript-eslint/eslint-plugin@6.8.0(@typescript-eslint/parser@6.8.0)(eslint@8.52.0)(typescript@5.2.2):
resolution: {integrity: sha512-GosF4238Tkes2SHPQ1i8f6rMtG6zlKwMEB0abqSJ3Npvos+doIlc/ATG+vX1G9coDF3Ex78zM3heXHLyWEwLUw==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@@ -571,13 +571,13 @@ packages:
optional: true
dependencies:
'@eslint-community/regexpp': 4.9.1
- '@typescript-eslint/parser': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/parser': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
'@typescript-eslint/scope-manager': 6.8.0
- '@typescript-eslint/type-utils': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
- '@typescript-eslint/utils': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/type-utils': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
+ '@typescript-eslint/utils': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.8.0
debug: 4.3.4
- eslint: 8.51.0
+ eslint: 8.52.0
graphemer: 1.4.0
ignore: 5.2.4
natural-compare: 1.4.0
@@ -588,7 +588,7 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/parser@6.8.0(eslint@8.51.0)(typescript@5.2.2):
+ /@typescript-eslint/parser@6.8.0(eslint@8.52.0)(typescript@5.2.2):
resolution: {integrity: sha512-5tNs6Bw0j6BdWuP8Fx+VH4G9fEPDxnVI7yH1IAPkQH5RUtvKwRoqdecAPdQXv4rSOADAaz1LFBZvZG7VbXivSg==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@@ -603,7 +603,7 @@ packages:
'@typescript-eslint/typescript-estree': 6.8.0(typescript@5.2.2)
'@typescript-eslint/visitor-keys': 6.8.0
debug: 4.3.4
- eslint: 8.51.0
+ eslint: 8.52.0
typescript: 5.2.2
transitivePeerDependencies:
- supports-color
@@ -617,7 +617,7 @@ packages:
'@typescript-eslint/visitor-keys': 6.8.0
dev: true
- /@typescript-eslint/type-utils@6.8.0(eslint@8.51.0)(typescript@5.2.2):
+ /@typescript-eslint/type-utils@6.8.0(eslint@8.52.0)(typescript@5.2.2):
resolution: {integrity: sha512-RYOJdlkTJIXW7GSldUIHqc/Hkto8E+fZN96dMIFhuTJcQwdRoGN2rEWA8U6oXbLo0qufH7NPElUb+MceHtz54g==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
@@ -628,9 +628,9 @@ packages:
optional: true
dependencies:
'@typescript-eslint/typescript-estree': 6.8.0(typescript@5.2.2)
- '@typescript-eslint/utils': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/utils': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
debug: 4.3.4
- eslint: 8.51.0
+ eslint: 8.52.0
ts-api-utils: 1.0.3(typescript@5.2.2)
typescript: 5.2.2
transitivePeerDependencies:
@@ -663,19 +663,19 @@ packages:
- supports-color
dev: true
- /@typescript-eslint/utils@6.8.0(eslint@8.51.0)(typescript@5.2.2):
+ /@typescript-eslint/utils@6.8.0(eslint@8.52.0)(typescript@5.2.2):
resolution: {integrity: sha512-dKs1itdE2qFG4jr0dlYLQVppqTE+Itt7GmIf/vX6CSvsW+3ov8PbWauVKyyfNngokhIO9sKZeRGCUo1+N7U98Q==}
engines: {node: ^16.0.0 || >=18.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
dependencies:
- '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.52.0)
'@types/json-schema': 7.0.13
'@types/semver': 7.5.3
'@typescript-eslint/scope-manager': 6.8.0
'@typescript-eslint/types': 6.8.0
'@typescript-eslint/typescript-estree': 6.8.0(typescript@5.2.2)
- eslint: 8.51.0
+ eslint: 8.52.0
semver: 7.5.4
transitivePeerDependencies:
- supports-color
@@ -690,6 +690,10 @@ packages:
eslint-visitor-keys: 3.4.3
dev: true
+ /@ungap/structured-clone@1.2.0:
+ resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
+ dev: true
+
/@xml-tools/parser@1.0.11:
resolution: {integrity: sha512-aKqQ077XnR+oQtHJlrAflaZaL7qZsulWc/i/ZEooar5JiWj1eLt0+Wg28cpa+XLney107wXqneC+oG1IZvxkTA==}
dependencies:
@@ -1541,7 +1545,7 @@ packages:
engines: {node: '>=12'}
dev: true
- /eslint-config-airbnb-base@15.0.0(eslint-plugin-import@2.28.1)(eslint@8.51.0):
+ /eslint-config-airbnb-base@15.0.0(eslint-plugin-import@2.28.1)(eslint@8.52.0):
resolution: {integrity: sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==}
engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies:
@@ -1549,20 +1553,20 @@ packages:
eslint-plugin-import: ^2.25.2
dependencies:
confusing-browser-globals: 1.0.11
- eslint: 8.51.0
- eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.8.0)(eslint@8.51.0)
+ eslint: 8.52.0
+ eslint-plugin-import: 2.28.1(@typescript-eslint/parser@6.8.0)(eslint@8.52.0)
object.assign: 4.1.4
object.entries: 1.1.7
semver: 6.3.1
dev: true
- /eslint-config-prettier@9.0.0(eslint@8.51.0):
+ /eslint-config-prettier@9.0.0(eslint@8.52.0):
resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==}
hasBin: true
peerDependencies:
eslint: '>=7.0.0'
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
dev: true
/eslint-formatter-pretty@5.0.0:
@@ -1589,7 +1593,7 @@ packages:
- supports-color
dev: true
- /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.8.0)(eslint-import-resolver-node@0.3.9)(eslint@8.51.0):
+ /eslint-module-utils@2.8.0(@typescript-eslint/parser@6.8.0)(eslint-import-resolver-node@0.3.9)(eslint@8.52.0):
resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==}
engines: {node: '>=4'}
peerDependencies:
@@ -1610,23 +1614,23 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
- '@typescript-eslint/parser': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/parser': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
debug: 3.2.7
- eslint: 8.51.0
+ eslint: 8.52.0
eslint-import-resolver-node: 0.3.9
transitivePeerDependencies:
- supports-color
dev: true
- /eslint-plugin-ava@14.0.0(eslint@8.51.0):
+ /eslint-plugin-ava@14.0.0(eslint@8.52.0):
resolution: {integrity: sha512-XmKT6hppaipwwnLVwwvQliSU6AF1QMHiNoLD5JQfzhUhf0jY7CO0O624fQrE+Y/fTb9vbW8r77nKf7M/oHulxw==}
engines: {node: '>=14.17 <15 || >=16.4'}
peerDependencies:
eslint: '>=8.26.0'
dependencies:
enhance-visitors: 1.0.0
- eslint: 8.51.0
- eslint-utils: 3.0.0(eslint@8.51.0)
+ eslint: 8.52.0
+ eslint-utils: 3.0.0(eslint@8.52.0)
espree: 9.6.1
espurify: 2.1.1
import-modules: 2.1.0
@@ -1635,29 +1639,29 @@ packages:
resolve-from: 5.0.0
dev: true
- /eslint-plugin-es-x@7.2.0(eslint@8.51.0):
+ /eslint-plugin-es-x@7.2.0(eslint@8.52.0):
resolution: {integrity: sha512-9dvv5CcvNjSJPqnS5uZkqb3xmbeqRLnvXKK7iI5+oK/yTusyc46zbBZKENGsOfojm/mKfszyZb+wNqNPAPeGXA==}
engines: {node: ^14.18.0 || >=16.0.0}
peerDependencies:
eslint: '>=8'
dependencies:
- '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.52.0)
'@eslint-community/regexpp': 4.9.1
- eslint: 8.51.0
+ eslint: 8.52.0
dev: true
- /eslint-plugin-eslint-comments@3.2.0(eslint@8.51.0):
+ /eslint-plugin-eslint-comments@3.2.0(eslint@8.52.0):
resolution: {integrity: sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==}
engines: {node: '>=6.5.0'}
peerDependencies:
eslint: '>=4.19.1'
dependencies:
escape-string-regexp: 1.0.5
- eslint: 8.51.0
+ eslint: 8.52.0
ignore: 5.2.4
dev: true
- /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.8.0)(eslint@8.51.0):
+ /eslint-plugin-import@2.28.1(@typescript-eslint/parser@6.8.0)(eslint@8.52.0):
resolution: {integrity: sha512-9I9hFlITvOV55alzoKBI+K9q74kv0iKMeY6av5+umsNwayt59fz692daGyjR+oStBQgx6nwR9rXldDev3Clw+A==}
engines: {node: '>=4'}
peerDependencies:
@@ -1667,16 +1671,16 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
- '@typescript-eslint/parser': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/parser': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.3
array.prototype.flat: 1.3.2
array.prototype.flatmap: 1.3.2
debug: 3.2.7
doctrine: 2.1.0
- eslint: 8.51.0
+ eslint: 8.52.0
eslint-import-resolver-node: 0.3.9
- eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.8.0)(eslint-import-resolver-node@0.3.9)(eslint@8.51.0)
+ eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.8.0)(eslint-import-resolver-node@0.3.9)(eslint@8.52.0)
has: 1.0.4
is-core-module: 2.13.0
is-glob: 4.0.3
@@ -1692,28 +1696,28 @@ packages:
- supports-color
dev: true
- /eslint-plugin-markdown@3.0.1(eslint@8.51.0):
+ /eslint-plugin-markdown@3.0.1(eslint@8.52.0):
resolution: {integrity: sha512-8rqoc148DWdGdmYF6WSQFT3uQ6PO7zXYgeBpHAOAakX/zpq+NvFYbDA/H7PYzHajwtmaOzAwfxyl++x0g1/N9A==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
mdast-util-from-markdown: 0.8.5
transitivePeerDependencies:
- supports-color
dev: true
- /eslint-plugin-n@16.2.0(eslint@8.51.0):
+ /eslint-plugin-n@16.2.0(eslint@8.52.0):
resolution: {integrity: sha512-AQER2jEyQOt1LG6JkGJCCIFotzmlcCZFur2wdKrp1JX2cNotC7Ae0BcD/4lLv3lUAArM9uNS8z/fsvXTd0L71g==}
engines: {node: '>=16.0.0'}
peerDependencies:
eslint: '>=7.0.0'
dependencies:
- '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.52.0)
builtins: 5.0.1
- eslint: 8.51.0
- eslint-plugin-es-x: 7.2.0(eslint@8.51.0)
+ eslint: 8.52.0
+ eslint-plugin-es-x: 7.2.0(eslint@8.52.0)
get-tsconfig: 4.7.2
ignore: 5.2.4
is-core-module: 2.13.0
@@ -1722,35 +1726,35 @@ packages:
semver: 7.5.4
dev: true
- /eslint-plugin-promise@6.1.1(eslint@8.51.0):
+ /eslint-plugin-promise@6.1.1(eslint@8.52.0):
resolution: {integrity: sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^7.0.0 || ^8.0.0
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
dev: true
- /eslint-plugin-sonarjs@0.21.0(eslint@8.51.0):
+ /eslint-plugin-sonarjs@0.21.0(eslint@8.52.0):
resolution: {integrity: sha512-oezUDfFT5S6j3rQheZ4DLPrbetPmMS7zHIKWGHr0CM3g5JgyZroz1FpIKa4jV83NsGpmgIeagpokWDKIJzRQmw==}
engines: {node: '>=14'}
peerDependencies:
eslint: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
dev: true
- /eslint-plugin-unicorn@48.0.1(eslint@8.51.0):
+ /eslint-plugin-unicorn@48.0.1(eslint@8.52.0):
resolution: {integrity: sha512-FW+4r20myG/DqFcCSzoumaddKBicIPeFnTrifon2mWIzlfyvzwyqZjqVP7m4Cqr/ZYisS2aiLghkUWaPg6vtCw==}
engines: {node: '>=16'}
peerDependencies:
eslint: '>=8.44.0'
dependencies:
'@babel/helper-validator-identifier': 7.22.20
- '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.52.0)
ci-info: 3.9.0
clean-regexp: 1.0.0
- eslint: 8.51.0
+ eslint: 8.52.0
esquery: 1.5.0
indent-string: 4.0.0
is-builtin-module: 3.2.1
@@ -1784,13 +1788,13 @@ packages:
estraverse: 5.3.0
dev: true
- /eslint-utils@3.0.0(eslint@8.51.0):
+ /eslint-utils@3.0.0(eslint@8.52.0):
resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
peerDependencies:
eslint: '>=5'
dependencies:
- eslint: 8.51.0
+ eslint: 8.52.0
eslint-visitor-keys: 2.1.0
dev: true
@@ -1804,18 +1808,19 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
- /eslint@8.51.0:
- resolution: {integrity: sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA==}
+ /eslint@8.52.0:
+ resolution: {integrity: sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
hasBin: true
dependencies:
- '@eslint-community/eslint-utils': 4.4.0(eslint@8.51.0)
+ '@eslint-community/eslint-utils': 4.4.0(eslint@8.52.0)
'@eslint-community/regexpp': 4.9.1
'@eslint/eslintrc': 2.1.2
- '@eslint/js': 8.51.0
- '@humanwhocodes/config-array': 0.11.11
+ '@eslint/js': 8.52.0
+ '@humanwhocodes/config-array': 0.11.13
'@humanwhocodes/module-importer': 1.0.1
'@nodelib/fs.walk': 1.2.8
+ '@ungap/structured-clone': 1.2.0
ajv: 6.12.6
chalk: 4.1.2
cross-spawn: 7.0.3
@@ -2045,7 +2050,7 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
dev: true
- /garou@0.6.17(eslint@8.51.0)(typescript@5.2.2):
+ /garou@0.6.17(eslint@8.52.0)(typescript@5.2.2):
resolution: {integrity: sha512-Q9UZJzVh1h1TcDBPtypBI4/6XJCMquRuqGqtVrr/pCzx8/rOMF/h4fg4hg9rReGs2pUIkjSGKygj1fc+bA0u6A==}
engines: {node: '>=19.0.0 || ^16.15.0 || ^18.12.0'}
hasBin: true
@@ -2056,13 +2061,13 @@ packages:
typescript:
optional: true
dependencies:
- '@typescript-eslint/parser': 6.8.0(eslint@8.51.0)(typescript@5.2.2)
+ '@typescript-eslint/parser': 6.8.0(eslint@8.52.0)(typescript@5.2.2)
'@yarnpkg/lockfile': 1.1.0
- eslint: 8.51.0
- eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.8.0)(eslint-import-resolver-node@0.3.9)(eslint@8.51.0)
+ eslint: 8.52.0
+ eslint-module-utils: 2.8.0(@typescript-eslint/parser@6.8.0)(eslint-import-resolver-node@0.3.9)(eslint@8.52.0)
flat-cache: 3.1.1
typescript: 5.2.2
- vue-eslint-parser: 9.3.2(eslint@8.51.0)
+ vue-eslint-parser: 9.3.2(eslint@8.52.0)
write-file-atomic: 5.0.1
transitivePeerDependencies:
- eslint-import-resolver-node
@@ -3963,14 +3968,14 @@ packages:
vfile-message: 4.0.2
dev: true
- /vue-eslint-parser@9.3.2(eslint@8.51.0):
+ /vue-eslint-parser@9.3.2(eslint@8.52.0):
resolution: {integrity: sha512-q7tWyCVaV9f8iQyIA5Mkj/S6AoJ9KBN8IeUSf3XEmBrOtxOZnfTg5s4KClbZBCK3GtnT/+RyCLZyDHuZwTuBjg==}
engines: {node: ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: '>=6.0.0'
dependencies:
debug: 4.3.4
- eslint: 8.51.0
+ eslint: 8.52.0
eslint-scope: 7.2.2
eslint-visitor-keys: 3.4.3
espree: 9.6.1
diff --git a/test/output.mjs b/test/output.mjs
index ed834d9..b77e3e4 100644
--- a/test/output.mjs
+++ b/test/output.mjs
@@ -14,4 +14,6 @@ test('inline-svg', macro, input, { server, output: 'inline-svg' });
test('img-base64', macro, input, { server, output: 'img-base64' });
+test('img-html-base64', macro, input, { server, output: 'img-html-base64' });
+
test('object-base64', macro, input, { server, output: 'object-base64' });
diff --git a/test/snapshots/output.mjs.md b/test/snapshots/output.mjs.md
index bf2082e..dd53db8 100644
--- a/test/snapshots/output.mjs.md
+++ b/test/snapshots/output.mjs.md
@@ -16,6 +16,12 @@ Generated by [AVA](https://avajs.dev).
'![plantuml](data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXMtYXNjaWkiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U3R5bGVUeXBlPSJ0ZXh0L2NzcyIgaGVpZ2h0PSIxMDVweCIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSIgc3R5bGU9IndpZHRoOjY4cHg7aGVpZ2h0OjEwNXB4O2JhY2tncm91bmQ6I0ZGRkZGRjsiIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDY4IDEwNSIgd2lkdGg9IjY4cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiMxODE4MTg7c3Ryb2tlLXdpZHRoOjAuNTtzdHJva2UtZGFzaGFycmF5OjUuMCw1LjA7IiB4MT0iMTYiIHgyPSIxNiIgeTE9IjM2LjI5NjkiIHkyPSI3MC4yOTY5Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTojMTgxODE4O3N0cm9rZS13aWR0aDowLjU7c3Ryb2tlLWRhc2hhcnJheTo1LjAsNS4wOyIgeDE9IjUwIiB4Mj0iNTAiIHkxPSIzNi4yOTY5IiB5Mj0iNzAuMjk2OSIvPjxyZWN0IGZpbGw9IiNFMkUyRjAiIGhlaWdodD0iMzAuMjk2OSIgcng9IjIuNSIgcnk9IjIuNSIgc3R5bGU9InN0cm9rZTojMTgxODE4O3N0cm9rZS13aWR0aDowLjU7IiB3aWR0aD0iMjMiIHg9IjUiIHk9IjUiLz48dGV4dCBmaWxsPSIjMDAwMDAwIiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgZm9udC1zaXplPSIxNCIgbGVuZ3RoQWRqdXN0PSJzcGFjaW5nIiB0ZXh0TGVuZ3RoPSI5IiB4PSIxMiIgeT0iMjQuOTk1MSI+QTwvdGV4dD48cmVjdCBmaWxsPSIjRTJFMkYwIiBoZWlnaHQ9IjMwLjI5NjkiIHJ4PSIyLjUiIHJ5PSIyLjUiIHN0eWxlPSJzdHJva2U6IzE4MTgxODtzdHJva2Utd2lkdGg6MC41OyIgd2lkdGg9IjIzIiB4PSI1IiB5PSI2OS4yOTY5Ii8+PHRleHQgZmlsbD0iIzAwMDAwMCIgZm9udC1mYW1pbHk9InNhbnMtc2VyaWYiIGZvbnQtc2l6ZT0iMTQiIGxlbmd0aEFkanVzdD0ic3BhY2luZyIgdGV4dExlbmd0aD0iOSIgeD0iMTIiIHk9Ijg5LjI5MiI+QTwvdGV4dD48cmVjdCBmaWxsPSIjRTJFMkYwIiBoZWlnaHQ9IjMwLjI5NjkiIHJ4PSIyLjUiIHJ5PSIyLjUiIHN0eWxlPSJzdHJva2U6IzE4MTgxODtzdHJva2Utd2lkdGg6MC41OyIgd2lkdGg9IjI0IiB4PSIzOCIgeT0iNSIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjE0IiBsZW5ndGhBZGp1c3Q9InNwYWNpbmciIHRleHRMZW5ndGg9IjEwIiB4PSI0NSIgeT0iMjQuOTk1MSI+QjwvdGV4dD48cmVjdCBmaWxsPSIjRTJFMkYwIiBoZWlnaHQ9IjMwLjI5NjkiIHJ4PSIyLjUiIHJ5PSIyLjUiIHN0eWxlPSJzdHJva2U6IzE4MTgxODtzdHJva2Utd2lkdGg6MC41OyIgd2lkdGg9IjI0IiB4PSIzOCIgeT0iNjkuMjk2OSIvPjx0ZXh0IGZpbGw9IiMwMDAwMDAiIGZvbnQtZmFtaWx5PSJzYW5zLXNlcmlmIiBmb250LXNpemU9IjE0IiBsZW5ndGhBZGp1c3Q9InNwYWNpbmciIHRleHRMZW5ndGg9IjEwIiB4PSI0NSIgeT0iODkuMjkyIj5CPC90ZXh0Pjxwb2x5Z29uIGZpbGw9IiMxODE4MTgiIHBvaW50cz0iMzgsNDguMjk2OSw0OCw1Mi4yOTY5LDM4LDU2LjI5NjksNDIsNTIuMjk2OSIgc3R5bGU9InN0cm9rZTojMTgxODE4O3N0cm9rZS13aWR0aDoxLjA7Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTojMTgxODE4O3N0cm9rZS13aWR0aDoxLjA7c3Ryb2tlLWRhc2hhcnJheToyLjAsMi4wOyIgeDE9IjE2LjUiIHgyPSI0NCIgeTE9IjUyLjI5NjkiIHkyPSI1Mi4yOTY5Ii8+PCEtLVNSQz1bU3JKR3JSTEpTMDgwXS0tPjwvZz48L3N2Zz4=)'
+## img-html-base64
+
+> Snapshot 1
+
+ '
'
+
## object-base64
> Snapshot 1
diff --git a/test/snapshots/output.mjs.snap b/test/snapshots/output.mjs.snap
index 4c25ded..c099c07 100644
Binary files a/test/snapshots/output.mjs.snap and b/test/snapshots/output.mjs.snap differ
diff --git a/test/snapshots/validate.mjs.md b/test/snapshots/validate.mjs.md
index e4b9dba..99682bf 100644
--- a/test/snapshots/validate.mjs.md
+++ b/test/snapshots/validate.mjs.md
@@ -93,11 +93,11 @@ Generated by [AVA](https://avajs.dev).
> Snapshot 3
TypeError {
- message: '`output` should be one of `img-base64/object-base64/inline-svg`',
+ message: '`output` should be one of `img-base64/object-base64/img-html-base64/inline-svg`',
}
> Snapshot 4
TypeError {
- message: '`output` should be one of `img-base64/object-base64/inline-svg`',
+ message: '`output` should be one of `img-base64/object-base64/img-html-base64/inline-svg`',
}
diff --git a/test/snapshots/validate.mjs.snap b/test/snapshots/validate.mjs.snap
index 5667379..9927460 100644
Binary files a/test/snapshots/validate.mjs.snap and b/test/snapshots/validate.mjs.snap differ