@revenuecat/purchases-ui-js 4.13.0 → 4.14.0
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.
|
@@ -136,6 +136,11 @@ export function getHtmlFromMarkdown(text) {
|
|
|
136
136
|
bold: { regexp: /\*\*(.*?)\*\*/g, output: "<b>$1</b>" },
|
|
137
137
|
italic: { regexp: /\*(.*?)\*/g, output: "<i>$1</i>" },
|
|
138
138
|
strikethrough: { regexp: /~(.*?)~/g, output: "<s>$1</s>" },
|
|
139
|
+
// escapeHtml turned `<u>` tags into `<u>`, so we convert them back:
|
|
140
|
+
underline: { regexp: /<u>(.*?)<\/u>/g, output: "<u>$1</u>" },
|
|
141
|
+
// NOTE: Existing bug: the dashboard saves a literal "<" as `<` and
|
|
142
|
+
// escapeHtml escapes it again, so "Show your support <3" shows as
|
|
143
|
+
// "Show your support <3".
|
|
139
144
|
code: {
|
|
140
145
|
regexp: /`(.*?)`/g,
|
|
141
146
|
output: "<span style='font-family: monospace'>$1</span>",
|
package/dist/stories/fixtures.js
CHANGED
|
@@ -5388,7 +5388,7 @@ export const fontsPaywallData = {
|
|
|
5388
5388
|
ptR0PssHwi: "Heading L",
|
|
5389
5389
|
wGpryncQ4j: "Semibold",
|
|
5390
5390
|
zZXnBwaz8X: "Heading S",
|
|
5391
|
-
uzD2rPJ68m: "**this is bold text**\\\n*this is italics*\\\n~this is strikethrough~\\\n`this is code`\\\n[this is a link](https://www.google.com)",
|
|
5391
|
+
uzD2rPJ68m: "**this is bold text**\\\n*this is italics*\\\n~this is strikethrough~\\\n<u>this is underlined</u>\\\n`this is code`\\\n[this is a link](https://www.google.com)",
|
|
5392
5392
|
},
|
|
5393
5393
|
},
|
|
5394
5394
|
created_at: "2024-11-08T21:39:13Z",
|
|
@@ -6443,7 +6443,7 @@ export const customFontsPaywallData = {
|
|
|
6443
6443
|
ptR0PssHwi: "Heading L",
|
|
6444
6444
|
wGpryncQ4j: "Semibold",
|
|
6445
6445
|
zZXnBwaz8X: "Heading S",
|
|
6446
|
-
uzD2rPJ68m: "**this is bold text**\\\n*this is italics*\\\n~this is strikethrough~\\\n`this is code`\\\n[this is a link](https://www.google.com)",
|
|
6446
|
+
uzD2rPJ68m: "**this is bold text**\\\n*this is italics*\\\n~this is strikethrough~\\\n<u>this is underlined</u>\\\n`this is code`\\\n[this is a link](https://www.google.com)",
|
|
6447
6447
|
},
|
|
6448
6448
|
},
|
|
6449
6449
|
created_at: "2024-11-08T21:39:13Z",
|