• Hi:

    I use links with relative URLs in many of my readme files. Yet, they don’t seem to be respected by the plugin. For example, markdown like this:

    * [Monitoring GPS behavior](#monitoring-gps-behavior)

    Renders this link in my readme.md file when viewed in GitHub:

    https://github.com/reselbob/simplegps/blob/main/README.md#monitoring-gps-behavior

    This is good and correct. Yet, under my test WordPress site using the External Markdown plugin, the link renders like this:

    https://192.168.86.35/index.php/2021/06/01/embedded-post/#monitoring-gps-behavior

    When I fix the malformed link like so:

    https://192.168.86.35/index.php/2021/06/01/embedded-post#monitoring-gps-behavior

    And enter it into a browser, in the address bar the link reverts back to:

    https://192.168.86.35/index.php/2021/06/01/embedded-post/#monitoring-gps-behavior

    Also, the links with relative URLS to images are broken too. Is there any way I can have relative URls supported by the plugin?

    Thanks in advance for any help you can provide.

    • This topic was modified 3 years, 6 months ago by reselbob.
    • This topic was modified 3 years, 6 months ago by reselbob.
Viewing 1 replies (of 1 total)
  • Plugin Author pReya

    (@preya)

    Hey @reselbob, sorry for the response time. I did not get any notifications from WordPress for this ??

    Regarding your topic:

    I’m afraid I can’t help you with that. The plugin sends the raw markdown to the GitHub API and just displays the result. So all the link handling happens at GitHub.

    The fact that https://bla.com/post1/#anchor" does not work, whilehttps://bla.com/post1#anchor` does is probably configurable in WordPress or via .htaccess (but sorry I don’t know how from the top of my head).

Viewing 1 replies (of 1 total)
  • The topic ‘How do I support links with relative URLs?’ is closed to new replies.