Skip to content

parseText function adds html to link href #56

@jaredkinger

Description

@jaredkinger

The parseText function being run on the record descriptions is adding <br> into the href of links when there is a newline immediately following a plain text link.

Example records:

Might be worth looking at how the old app was handling the line breaks here. Converting the newlines into paragraphs/line breaks when applicable is a better approach then putting the entire description into a single paragraph tag as it produces better semantics which is good for both accessibility and SEO. The markdown/link parsing is performed on the items in the array before wrapping in paragraph tags which should also prevent the <br> from being injected into the href.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions