Skip to content

Button shortcode does not support reference-style links #796

@DannyBen

Description

@DannyBen

Description

The Retype button shortcode appears to only work with inline links, but not with reference-style links.

Example:

[!button text="Test 1"][skill]
[!button text="Test 2"](https://example.com)

[skill]: https://example.com

Expected behavior:
Both buttons should render and link to https://example.com.

Actual behavior:

Image

Only the inline version works:

[!button text="Test"](https://example.com)

The reference-style version:

[!button text="Test"][skill]

renders a button + the reference text.

Expected behavior

Button shortcodes should support standard Markdown reference-style links, the same way normal links do.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions