Skip to content

Option to use HTTPS for links without protocol https://github.com/showdownjs/showdown/issues/806#998

Closed
Faberle wants to merge 2 commits into
showdownjs:masterfrom
mondata-dev:https-auto-links
Closed

Option to use HTTPS for links without protocol https://github.com/showdownjs/showdown/issues/806#998
Faberle wants to merge 2 commits into
showdownjs:masterfrom
mondata-dev:https-auto-links

Conversation

@Faberle

@Faberle Faberle commented Feb 20, 2024

Copy link
Copy Markdown

This PR adds the option httpsAutoLinks to use https when encountering links without a specified protocol, e.g. when using simplifiedAutoLink.

This fixes Issue #806

@qlty-cloud-legacy

Copy link
Copy Markdown

Code Climate has analyzed commit 452f2e4 and detected 0 issues on this pull request.

View more on Code Climate.

@tivie

tivie commented Jun 17, 2026

Copy link
Copy Markdown
Member

Rebased onto current develop as #1051 (the link parser was restructured since this was opened — links.js is now link.js — so a direct merge no longer applied). Your commits' authorship is preserved there, including the string→boolean type fix. Thanks @Faberle! Continuing in #1051.

@tivie tivie closed this Jun 17, 2026
tivie added a commit that referenced this pull request Jun 17, 2026
Adds the `httpsAutoLinks` option: when enabled, protocol-less autolinks (`www.` shortcuts) are prefixed with `https://` instead of `http://`, for both naked-URL (`simplifiedAutoLink`) and angle-bracket autolinks.

Original work by Christian Faber (@Faberle) in #998, rebased onto develop and ported into the event-based link.js.

Closes #806. Supersedes #998.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants