Skip to content

Commit

Permalink
feat: object title
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Nov 23, 2023
1 parent 9760914 commit fe9973e
Show file tree
Hide file tree
Showing 5 changed files with 227 additions and 411 deletions.
2 changes: 1 addition & 1 deletion lib/transform.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const modes = {
},
'object-base64': ({ node, diagramType, data, alt }) => {
node.type = 'html';
node.value = `<object type="${mime}" class="kroki-object" data-type="${diagramType}" data-alt="${
node.value = `<object type="${mime}" class="kroki-object" data-type="${diagramType}" title="${
alt || diagramType
}" data="${toDataURL(data)}">Load SVG fail...</object>`;
},
Expand Down
16 changes: 7 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "remark-kroki",
"version": "0.2.10",
"version": "0.2.11",
"description": "Remark plugin for showing Kroki diagram",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -57,17 +57,15 @@
},
"devDependencies": {
"@bring-it/npm": "^0.3.9",
"@nice-move/cli": "^0.10.13",
"@nice-move/eslint-config-base": "^0.9.23",
"@nice-move/cli": "^0.11.1",
"@nice-move/eslint-config-base": "^0.9.24",
"@nice-move/prettier-config": "^0.9.8",
"ava": "^5.3.1",
"eslint": "^8.53.0",
"eslint": "^8.54.0",
"eslint-plugin-ava": "^14.0.0",
"garou": "^0.6.17",
"prettier": "^3.0.3",
"garou": "^0.6.19",
"prettier": "^3.1.0",
"remark": "^15.0.1",
"svgo": "^3.0.3",
"svgo-config": "^0.5.0",
"unist-util-remove-position": "^5.0.0"
},
"engines": {
Expand All @@ -77,7 +75,7 @@
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"packageManager": "[email protected].2",
"packageManager": "[email protected].5",
"eslintConfig": {
"extends": "@nice-move/eslint-config-base"
},
Expand Down
Loading

0 comments on commit fe9973e

Please sign in to comment.