Skip to content

Button role renders as plain link when wrapped in a div #2167

Open
@mfisher87

Description

@mfisher87

Description

Version 1.5.0

<div>

{button}`my button <https://example.com>`

</div>

Renders as a plain link (<a> tag without "button" class). But remove the wrapping div and it renders correctly (<a> tag with "button" class).

Proposed solution

Add a button directive which allows me to pass style information to the button similar to a figure directive.

And/or, include the "button" class whenever rendering the button role.

Additional notes

I'm trying to wrap the button because I want to center-align my button.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions