');
@@ -58,6 +60,13 @@ describe('MacroConverter', () => {
expect(result).toContain('');
expect(result).not.toContain('data-card-appearance');
});
+
+ test('Server/DC default emits a standard anchor for external Markdown links', () => {
+ const converter = new MacroConverter({ isCloud: false });
+ const result = converter.markdownToStorage('**My external link:** [My Link Text](https://test.com)');
+ expect(result).toBe('My external link: My Link Text
\n');
+ expect(result).not.toContain('');
+ });
});
describe('VALID_LINK_STYLES', () => {
@@ -220,9 +229,7 @@ describe('MacroConverter markdownToStorage marker conventions', () => {
'[Jump](#my-section) and [External](https://example.com)'
);
expect(result).toContain('ac:anchor="my-section"');
- // External link should get the ac:link + ri:url storage format, not be
- // double-wrapped by the anchor replacement.
- expect(result).toContain('ri:value="https://example.com"');
+ expect(result).toContain('External');
expect(result).not.toContain('ac:anchor="https');
});
});