@idealyst/markdown 1.2.28 → 1.2.30

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/markdown",
3
- "version": "1.2.28",
3
+ "version": "1.2.30",
4
4
  "description": "Cross-platform markdown renderer for React and React Native with theme integration",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
@@ -29,7 +29,7 @@
29
29
  "publish:npm": "npm publish"
30
30
  },
31
31
  "peerDependencies": {
32
- "@idealyst/theme": "^1.2.28",
32
+ "@idealyst/theme": "^1.2.30",
33
33
  "react": ">=16.8.0",
34
34
  "react-markdown": ">=9.0.0",
35
35
  "react-native": ">=0.60.0",
@@ -58,7 +58,7 @@
58
58
  }
59
59
  },
60
60
  "devDependencies": {
61
- "@idealyst/theme": "^1.2.28",
61
+ "@idealyst/theme": "^1.2.30",
62
62
  "@types/react": "^19.1.0",
63
63
  "react": "^19.1.0",
64
64
  "react-markdown": "^9.0.0",
@@ -122,7 +122,7 @@ export const markdownStyles = defineStyle('Markdown', (theme: Theme) => ({
122
122
 
123
123
  // Links
124
124
  link: ({ linkIntent = 'primary' }: MarkdownDynamicProps) => ({
125
- color: theme.intents[linkIntent].primary,
125
+ color: theme.intents?.[linkIntent]?.primary ?? theme.colors.text.primary,
126
126
  textDecorationLine: 'underline',
127
127
  _web: {
128
128
  cursor: 'pointer',
@@ -292,7 +292,7 @@ export const markdownStyles = defineStyle('Markdown', (theme: Theme) => ({
292
292
  }),
293
293
 
294
294
  footnoteRef: ({ linkIntent = 'primary' }: MarkdownDynamicProps) => ({
295
- color: theme.intents[linkIntent].primary,
295
+ color: theme.intents?.[linkIntent]?.primary ?? theme.colors.text.primary,
296
296
  fontSize: 10,
297
297
  _web: {
298
298
  verticalAlign: 'super',