Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Linking Bug

A topic by lemong created Jan 12, 2022 Views: 122 Replies: 1
Viewing posts 1 to 2

Arch Linux / Appimage / 0.31.0

To create a link to header within a document you just enter [Name Of Link](#name-of-header-no-spaces)

However, deepdwn has an issue linking to headers with an apostrophe. [Name Of Link](#name-of-header-no-space's) that would not let me ctrl click on it. I tested it in typora and it works perfectly in there. I also tested another document just to make sure the error wasn't in my file and i got the same result.

(1 edit)

The way that those links are generated isn’t standard across markdown editors, unfortunately, so I can’t guarantee that the same heading links will work from one editor to another.

In the current version, Deepdwn would expect a link like #name-of-header-no-space%E2%80%99s (that’s a URL encoded curly apostrophe).

You can use autocomplete to get the right heading URL without having to know how they’ll be generated, see: https://billiam.itch.io/deepdwn/devlog/262586/v0240-document-linkingautocomplete-and-html-exports

That said, there are a few bugs that should be fixed in the next version:

  • I’m going to change heading links so that they’re generated before punctuation/typography are converted, so your like should just use ' the way you expect. This will break some existing links for people, unfortunately, but I think it’s the right change.
  • If a file hasn’t been saved, autocomplete will not work. It should still allow linking to headings in the same document.
  • Autocomplete will display HTML in the popup. It doesn’t hurt anything but it’s ugly