confluence-cli 1.33.2 → 1.33.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,6 +22,14 @@ function htmlToMarkdown(html) {
22
22
 
23
23
  markdown = markdown.replace(/<time\s+datetime="([^"]+)"[^>]*(?:\/>|>\s*<\/time>)/g, '$1');
24
24
 
25
+ // Convert <a href="url">text</a> to [text](url) before generic attribute stripping.
26
+ // Allows attributes anywhere in the opening tag so smart links / inline cards
27
+ // (e.g. <a href="..." data-card-appearance="inline">) are preserved.
28
+ markdown = markdown.replace(
29
+ /<a\s+[^>]*?href="([^"]*)"[^>]*>([\s\S]*?)<\/a>/g,
30
+ (_, href, text) => `[${text}](${href})`
31
+ );
32
+
25
33
  markdown = markdown.replace(/<strong[^>]*>(.*?)<\/strong>/g, '**$1**');
26
34
 
27
35
  markdown = markdown.replace(/<em[^>]*>(.*?)<\/em>/g, '*$1*');
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "confluence-cli",
3
- "version": "1.33.2",
3
+ "version": "1.33.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "confluence-cli",
9
- "version": "1.33.2",
9
+ "version": "1.33.3",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "axios": "^1.15.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "confluence-cli",
3
- "version": "1.33.2",
3
+ "version": "1.33.3",
4
4
  "description": "A command-line interface for Atlassian Confluence with page creation and editing capabilities",
5
5
  "main": "index.js",
6
6
  "bin": {