Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

Render non-fuzzy links without content correctly #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Render non-fuzzy links without content correctly #11

wants to merge 1 commit into from

Conversation

C-xC-c
Copy link

@C-xC-c C-xC-c commented Mar 18, 2021

Hi!
First, thank you for making this package, it's really great!

Currently, proper links without contents, e.g. [[https://example.com]] don't render quite how you expect, #9 gives a full example. This adds an extra case when formatting links to handle the above case properly.

Fixes #9.
Thanks again~

Currently a link like `[[https://example.com]]` gets rendered as
`<em>//example.com</em>`, which is not the expected behaviour.

The current behaviour is retained for "fuzzy" links I.E. without a
protocol, which seems to be what is intended, but fixed in all other
cases.
@C-xC-c C-xC-c changed the title Render non-fuzzy without content correctly Render non-fuzzy links without content correctly Mar 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Links without contents should generate links with the raw URL as the hyperlink text
1 participant