Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't hyperlink raw urls #10

Open
ralyodio opened this issue Nov 25, 2022 · 1 comment
Open

Doesn't hyperlink raw urls #10

ralyodio opened this issue Nov 25, 2022 · 1 comment

Comments

@ralyodio
Copy link

a link (ie: https://example.com) should be automatically hyperlinked when using markdown.

This doesnt happen.

@ralyodio
Copy link
Author

ralyodio commented Nov 25, 2022

fix:

	var rx_url = /(https?:\/\/[^\s]+)/g;
....

replace(rx_url, function (all, p1) {
		return '<a href="' + p1 + '">' + unesc(highlight(p1)) + '</a>';
	});

just make sure to add it after rx_link replacement

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

No branches or pull requests

1 participant