Skip to content

Verse selection/targeting when getting passage? #15

@benkaiser

Description

@benkaiser

I'm looking to make use of fetch(bible) as part of a project I am building.

For this, I would love to be able to leverage the HTML generated by get_whole or get_passage, but allowing users to select specific verses and then take action on them (e.g. highlight, copy, etc). But it appears from the HTML that it isn't directly clear how to delineate where a verse starts and ends so I can underline the whole verse when it is selected.

Do you have a suggested approach for how I could achieve this? I'm okay if it is not a specific container (since I know a verse can have multiple block level elements), but instead a class or data attribute we apply to every span inside the verse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions