Skip to content

Refactor verse rendering and footnote extraction#152

Draft
jaredhightower-youversion wants to merge 1 commit intomainfrom
jh/YPE-1277-react-sdk-bible-text-view-refactor-footnotes-to-use-multiple-markers-inline-approach-collab
Draft

Refactor verse rendering and footnote extraction#152
jaredhightower-youversion wants to merge 1 commit intomainfrom
jh/YPE-1277-react-sdk-bible-text-view-refactor-footnotes-to-use-multiple-markers-inline-approach-collab

Conversation

@jaredhightower-youversion
Copy link
Collaborator

This commit refactors the VerseTextHtml component and the extractNotesFromWrappedHtml utility function.

The VerseTextHtml component now logs placeholders for debugging and places the contentRef div at the end of the returned JSX.

The extractNotesFromWrappedHtml function now adds a data-verse-footnote attribute to footnote elements and removes the yv-n class. The logic for handling spacing around removed footnotes has been commented out, as it was causing issues.

This commit refactors the `VerseTextHtml` component and the
`extractNotesFromWrappedHtml` utility function.

The `VerseTextHtml` component now logs `placeholders` for debugging and
places the `contentRef` div at the end of the returned JSX.

The `extractNotesFromWrappedHtml` function now adds a
`data-verse-footnote` attribute to footnote elements and removes the
`yv-n` class. The logic for handling spacing around removed footnotes
has been commented out, as it was causing issues.
@changeset-bot
Copy link

changeset-bot bot commented Feb 17, 2026

⚠️ No Changeset found

Latest commit: 4d8129a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants