{textContent} @@ -1917,7 +1923,7 @@ function parseMarkdownContentLegacy( normalizedText = normalizedText.replace(/[ \t]{2,}/g, ' ') normalizedText = normalizedText.trim() if (normalizedText) { - const textContent = parseInlineMarkdown(normalizedText, `text-${patternIdx}-para-${paraIdx}-final`, footnotes, emojiInfos) + const textContent = parseInlineMarkdown(normalizedText, `text-${patternIdx}-para-${paraIdx}-final`, footnotes, emojiInfos, undefined, emojiLightbox) parts.push(
{textContent} @@ -1937,7 +1943,7 @@ function parseMarkdownContentLegacy( normalizedPara = normalizedPara.trim() if (normalizedPara) { // Process paragraph for inline formatting (which will handle markdown links) - const paraContent = parseInlineMarkdown(normalizedPara, `text-${patternIdx}-para-${paraIdx}`, footnotes, emojiInfos) + const paraContent = parseInlineMarkdown(normalizedPara, `text-${patternIdx}-para-${paraIdx}`, footnotes, emojiInfos, undefined, emojiLightbox) // Wrap in paragraph tag (no whitespace-pre-wrap, let normal text wrapping handle it) parts.push(
@@ -2179,7 +2185,7 @@ function parseMarkdownContentLegacy(
const { text, url } = pattern.data
// Process the link text for inline formatting (bold, italic, etc.)
const linkContent = stripNestedAnchorsFromNodes(
- parseInlineMarkdown(text, `link-${patternIdx}`, footnotes, emojiInfos),
+ parseInlineMarkdown(text, `link-${patternIdx}`, footnotes, emojiInfos, undefined, emojiLightbox),
`link-${patternIdx}-sanitized`
)
// Markdown links should always be rendered as inline links, not block-level components
@@ -2269,7 +2275,7 @@ function parseMarkdownContentLegacy(
} else if (pattern.type === 'header') {
const { level, text } = pattern.data
// Parse the header text for inline formatting (but not nested headers)
- const headerContent = parseInlineMarkdown(text, `header-${patternIdx}`, footnotes, emojiInfos)
+ const headerContent = parseInlineMarkdown(text, `header-${patternIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
const HeaderTag = `h${Math.min(level, 6)}` as keyof JSX.IntrinsicElements
parts.push(
@@ -2397,7 +2403,7 @@ function parseMarkdownContentLegacy(
// Each line should have the > prefix preserved
const greentextContent = lines.map((line: string, lineIdx: number) => {
// Parse inline markdown for each line (for links, hashtags, etc.)
- const lineContent = parseInlineMarkdown(line, `greentext-${patternIdx}-line-${lineIdx}`, footnotes, emojiInfos)
+ const lineContent = parseInlineMarkdown(line, `greentext-${patternIdx}-line-${lineIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
return (
{paraContent}
@@ -2720,7 +2726,7 @@ function parseMarkdownContentLegacy(
normalizedPara = normalizedPara.replace(/[ \t]{2,}/g, ' ')
normalizedPara = normalizedPara.trim()
if (normalizedPara) {
- const paraContent = parseInlineMarkdown(normalizedPara, `text-end-final-para-${paraIdx}`, footnotes, emojiInfos)
+ const paraContent = parseInlineMarkdown(normalizedPara, `text-end-final-para-${paraIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
parts.push(
{paraContent}
@@ -2739,7 +2745,7 @@ function parseMarkdownContentLegacy(
normalizedPara = normalizedPara.replace(/[ \t]{2,}/g, ' ')
normalizedPara = normalizedPara.trim()
if (normalizedPara) {
- const paraContent = parseInlineMarkdown(normalizedPara, `text-end-para-${paraIdx}`, footnotes, emojiInfos)
+ const paraContent = parseInlineMarkdown(normalizedPara, `text-end-para-${paraIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
parts.push(
{paraContent}
@@ -2762,7 +2768,7 @@ function parseMarkdownContentLegacy(
normalizedPara = normalizedPara.replace(/[ \t]{2,}/g, ' ')
normalizedPara = normalizedPara.trim()
if (!normalizedPara) return null
- const paraContent = parseInlineMarkdown(normalizedPara, `text-only-para-${paraIdx}`, footnotes, emojiInfos)
+ const paraContent = parseInlineMarkdown(normalizedPara, `text-only-para-${paraIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
return (
{paraContent}
@@ -2882,7 +2888,7 @@ function parseMarkdownContentLegacy(
const originalLine = listItemOriginalLines.get(patternIndex)
if (originalLine) {
// Render the original line with inline markdown processing
- const lineContent = parseInlineMarkdown(originalLine, `single-list-item-${partIdx}`, footnotes, emojiInfos)
+ const lineContent = parseInlineMarkdown(originalLine, `single-list-item-${partIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
wrappedParts.push(
{lineContent}
@@ -2929,7 +2935,7 @@ function parseMarkdownContentLegacy(
className="text-sm text-gray-700 dark:text-gray-300"
>
[{id}]:{' '}
- {parseInlineMarkdown(text, `footnote-${id}`, footnotes, emojiInfos)}
+ {parseInlineMarkdown(text, `footnote-${id}`, footnotes, emojiInfos, undefined, emojiLightbox)}
{' '}
@@ -3166,7 +3173,7 @@ function parseMarkdownContentMarked(
const txt = String(token.text ?? token.raw ?? '')
collectHashtags(txt)
out.push(
- ...parseInlineMarkdownLegacy(txt, `${key}-text`, footnotes, emojiInfos, navigateToHashtag)
+ ...parseInlineMarkdownLegacy(txt, `${key}-text`, footnotes, emojiInfos, navigateToHashtag, emojiLightbox)
)
break
}
@@ -3288,7 +3295,7 @@ function parseMarkdownContentMarked(
if (txt) {
collectHashtags(txt)
out.push(
- ...parseInlineMarkdownLegacy(txt, `${key}-fallback`, footnotes, emojiInfos, navigateToHashtag)
+ ...parseInlineMarkdownLegacy(txt, `${key}-fallback`, footnotes, emojiInfos, navigateToHashtag, emojiLightbox)
)
}
}
@@ -3531,7 +3538,7 @@ function parseMarkdownContentMarked(
if (before.trim().length > 0) {
nodes.push(
- {parseInlineMarkdown(before, `${key}-nostr-raw-segment-${segmentIdx}`, footnotes, emojiInfos, navigateToHashtag)}
+ {parseInlineMarkdown(before, `${key}-nostr-raw-segment-${segmentIdx}`, footnotes, emojiInfos, navigateToHashtag, emojiLightbox)}
- {parseInlineMarkdown(after, `${key}-nostr-raw-segment-${segmentIdx}`, footnotes, emojiInfos, navigateToHashtag)}
+ {parseInlineMarkdown(after, `${key}-nostr-raw-segment-${segmentIdx}`, footnotes, emojiInfos, navigateToHashtag, emojiLightbox)}
{t('Emoji sets settings intro')} {t('Login to set')} {t('No emoji sets yet')} {t('User emoji list intro')} {t('User emoji sets hint')}
}
@@ -2664,7 +2670,7 @@ function parseMarkdownContentLegacy(
normalizedPara = normalizedPara.replace(/[ \t]{2,}/g, ' ')
normalizedPara = normalizedPara.trim()
if (normalizedPara) {
- const paraContent = parseInlineMarkdown(normalizedPara, `text-end-para-${imgIdx}-${paraIdx}`, footnotes, emojiInfos)
+ const paraContent = parseInlineMarkdown(normalizedPara, `text-end-para-${imgIdx}-${paraIdx}`, footnotes, emojiInfos, undefined, emojiLightbox)
parts.push(
+ {lists.map((ev) => (
+
+ )}
+ >
+ )}
+ d={extractEmojiSetEditorFields(ev).d}
+
+ {t('View JSON')}
+ {t('User emoji inline section')}
+
+ {inlineEmojis.length === 0 ? (
+
+
+ :{row.shortcode}:
+ {t('User emoji sets section')}
+
+ {setATags.length === 0 ? (
+
+
+ {tag[1]}
+
+