Skip to content

[DATA / BUG] Remove prepended asterisk from FeatBenefit descriptions for TOH/TDCS FeatBenefits #851

@calumbell

Description

@calumbell

Bug description

FeatBenefits for Feats included in TOH and TDCS V2 data all include an asterisk at the start of their "desc" field.

Exhibit A: https://api-beta.open5e.com/v2/feats/tdcs_rapid-drinker/

"benefits": [
    {
        "desc": "* You can drink a potion as a Bonus action, instead of as an action."
    },
    {
        "desc": "* You have advantage on any saving throws triggered by..."
    }
],

Exhibit B: https://api-beta.open5e.com/v2/feats/toh_friend-of-the-forest

"benefits": [
        {
            "desc": "* You learn the *treeheal* (see the Magic and Spells chapter)..."
        },
        {
            "desc": "* You also learn the *speak with animals* spell and can cast it once..."
        }
    ],

This causes lots of trouble for our Markdown parser on the front-end as it creates unnecesarrily nested <ul>s. These asterisks should be treated as artefacts from V1 and removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions