Skip to content

Commit

Permalink
Comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Sep 20, 2024
1 parent 1eb3fc2 commit 23436e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/components/AsciidocBlocks/Listing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const Listing = ({ node }: { node: AdocTypes.Block }) => {
const content = getContent(node)
const decodedContent = decode(content) || content // unescape the html entities

// Function to replace callouts with placeholders
// Replace callouts with placeholders
const replaceCallouts = (content: string) => {
const calloutRegex = /<i class="conum" data-value="\d+"><\/i>/g
const callouts: string[] = []
Expand All @@ -90,7 +90,7 @@ const Listing = ({ node }: { node: AdocTypes.Block }) => {
return { placeholderContent, callouts }
}

// Function to restore callouts from placeholders
// Restore callouts from placeholders
const restoreCallouts = (highlightedContent: string, callouts: string[]) => {
return highlightedContent.replace(
/__CALLOUT_PLACEHOLDER_(\d+)__/g,
Expand Down

0 comments on commit 23436e5

Please # to comment.