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

Autolink style in new line does not work #208

Closed
tb opened this issue Aug 21, 2018 · 2 comments
Closed

Autolink style in new line does not work #208

tb opened this issue Aug 21, 2018 · 2 comments

Comments

@tb
Copy link

tb commented Aug 21, 2018

I checked two variants of autolink:

  **autolink** style
  <https://google.com>

and

  **autolink** style

  <https://google.com>

First wariant works, but for second (standalone paragraph) markdown-to-jsx renders:

<p><strong>autolink</strong> style</p><https:></https:>

I checked some online "Convert Markdown to HTML" sites and they generated proper markup for second variant:

<p><strong>autolink</strong> style</p>

<p><a href="https://google.com">https://google.com</a></p>
@quantizor
Copy link
Owner

Interesting, I'll take a look tomorrow probably. Thanks for reporting

@tb
Copy link
Author

tb commented Aug 22, 2018

Thanks!

BTW You can see it also on the https://probablyup.com/markdown-to-jsx/ with markdown like:

# This is Markdown

<https://probablyup.com/>

<https://probablyup.com/> lets you write content in a really natural way <https://probablyup.com/>.

List 1

* <https://probablyup.com/>
* <https://probablyup.com/>
* <https://probablyup.com/>

List 2

<https://probablyup.com/>

<https://probablyup.com/>

<https://probablyup.com/>

It generates:

<div class="">
    <h1 id="this-is-markdown" class="">This is Markdown</h1>
    <https: probablyup="true" com="true" class=""></https:>
    <https: probablyup="true" com="true" class=""></https:>
    <p class="">lets you write content in a really natural way <a href="https://probablyup.com/" class="">https://probablyup.com/</a>.</p>
    <p class="">List 1</p>
    <ul class="">
        <li class=""><a href="https://probablyup.com/" class="">https://probablyup.com/</a></li>
        <li class=""><a href="https://probablyup.com/" class="">https://probablyup.com/</a></li>
        <li class=""><a href="https://probablyup.com/" class="">https://probablyup.com/</a></li>
    </ul>
    <p class="">List 2</p>
    <https: probablyup="true" com="true" class=""></https:>
    <https: probablyup="true" com="true" class=""></https:>
    <https: probablyup="true" com="true" class=""></https:>
</div>

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