fspoettel / arkham.build

Deck builder for Arkham Horror: The Card Game™
https://arkham.build
5 stars 1 forks source link

Markdown links inside HTML tag not evaluated #48

Closed 5argon closed 1 month ago

5argon commented 1 month ago

Markdown link in an HTML tag (div, span) like the following first 2 example worked on arkhamdb but not in arkham.build

<div>
[**Tag, link, bold**](https://www.fantasyflightgames.com/en/products/arkham-horror-the-card-game/products/scarlet-keys-investigator-expansion/).
</div>

<div>
[Tag, link](https://www.fantasyflightgames.com/en/products/arkham-horror-the-card-game/products/scarlet-keys-investigator-expansion/).
</div>

[**Link, bold**](https://www.fantasyflightgames.com/en/products/arkham-horror-the-card-game/products/scarlet-keys-investigator-expansion/).

[Link](https://www.fantasyflightgames.com/en/products/arkham-horror-the-card-game/products/scarlet-keys-investigator-expansion/).
image image
fspoettel commented 1 month ago

We use a markdown parser that is compliant with the Markdown specs while ArkhamDB does not. I had a lot of fun dealing with the ** Bold** instructions that are in a lot of deck guides. 😓

There is a spec-compliant way to make it work though, adding new lines around the markdown in html:

<div>

[**Tag, link, bold**](https://www.fantasyflightgames.com/en/products/arkham-horror-the-card-game/products/scarlet-keys-investigator-expansion/).

</div>

Does this work for you?

5argon commented 1 month ago

That works, thanks!