taylormitchell / ankify_roam

A command-line tool which brings flashcards created in Roam to Anki.
MIT License
36 stars 6 forks source link

Dashes getting dropped in URLs #50

Open Etyre opened 2 years ago

Etyre commented 2 years ago

I have block in roam, which includes a link, specifically a link to a roam block/page.

Screen Shot 2022-04-27 at 6 13 48 PM

Note that the URL has two dashes in it: https://roamresearch.com/#/app/eli/page/P__70RrlK

When ankify_roam ankifies that block however, it interprets those two dashes as the beginning of an italicized section. It removes the dashes, and replaces them with the html <em> tag.

Screen Shot 2022-04-27 at 6 16 07 PM

(The <em> tag shows up if I click on the link, to open it in a browser.)

Screen Shot 2022-04-27 at 6 18 26 PM

This is a very minor issue for me. And even if it wasn't, the probability of a roam block-id having two dashes back to back is something like 0.001, that is small enough for this to basically not happen. So no need to fix it on my account.

But nevertheless, you might want to know about this sort of behavior.