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

not detecting pure links inside '<>' #4

Open
henriqueleng opened this issue Jan 20, 2016 · 3 comments
Open

not detecting pure links inside '<>' #4

henriqueleng opened this issue Jan 20, 2016 · 3 comments

Comments

@henriqueleng
Copy link

Hi,

I saw that smu don't support by default links or email addresses inside a simple <>,
as described here: https://daringfireball.net/projects/markdown/syntax#misc

I'm writing a webpage and it would be way simpler if I could only specify a link
like:

<http://google.com> 

instead of

[http://google.com](http://google.com)

, this in
case I wanna show the real link, and make it clickable.

Just to show of what am I talking about, comparing output from markdown_py and smu:

$ echo '<http://google.com>' | smu
<http://google.com>

$ echo '<http://google.com>' | markdown_py  
<p><a href="http://google.com">http://google.com</a></p>

I would appreciate if smu do that by default, I am using it a lot to build a webpage.
Also sorry for not coming with a patch, I tried but it would take me so much time to
figure out smu code, and it looks way complex to my simple C knowledge.

@henriqueleng henriqueleng changed the title not detecting pure links inside <> not detecting pure links inside '<>' Jan 20, 2016
@Gottox
Copy link
Owner

Gottox commented Jan 20, 2016

Okay, that's an actual bug, You can workaround this issue by using smu -n.

Gottox added a commit that referenced this issue Jan 20, 2016
@Gottox
Copy link
Owner

Gottox commented Jan 20, 2016

Please recheck. I'm not sure if this breaks smth else. 👍

@henriqueleng
Copy link
Author

I rebuilt my site with this new commit, it is working.
The only strange thing is that with my email, smu generated a big ugly line, but working one.
you can see the generated pages here:
http://henriquelengler.com
and the example of my email here: http://henriquelengler.com/contact.html
open the source of the page and see how strange is the line of the email.

Anyway, in these pages I saw no problem, just the ugliness of that line.

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

2 participants