Skip to content

remark-deflist: remark-attr not working on links in definition term #12

@brandonweiss

Description

@brandonweiss

I’m using MDX and I added remark-deflist as a plugin so I could so something like this:

term

: description and here is a <ExternalLink href="http://somewhere.com">link</ExternalLink>

I assumed that would work but it seems to throw an error. I don’t totally understand why, but MDX is new-ish and has some quirks so when I hit one I usually work around it.

Next I tried remark-attr and did something like this.

term

: description and here is a [link](https://somewhere.com){ target="_blank" rel="noopener noreferrer" }.

This didn’t work either which seemed a bit more surprising. I thought maybe it was a plugin ordering thing, like remark-deflist had to be before remark-attr but that didn't seem to make a difference.

I’m a bit new to remark so I’m not sure whether this should work or not, but it seems like it should?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions