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

Wrong rendering with Gfm\UrlAutoLinkExtension() #35

Open
t3chn0r opened this issue Feb 24, 2014 · 0 comments
Open

Wrong rendering with Gfm\UrlAutoLinkExtension() #35

t3chn0r opened this issue Feb 24, 2014 · 0 comments

Comments

@t3chn0r
Copy link

t3chn0r commented Feb 24, 2014

I use Redactor as the entry point for text. This is rich editor so the text for example when I enter a simple URL is coming raw like this:

<p>https://github.com/kzykhys/Ciconia</p>

I'm rendering the with the extension Gfm\UrlAutoLinkExtension() and the results are these:

<p><p><a href="https://github.com/kzykhys/Ciconia</">https://github.com/kzykhys/Ciconia</</a>p></p>

I'm processing the text with Ciconia with the following extensions:

        $ciconia = new Ciconia();
        $ciconia->removeExtension('header');
        $ciconia->removeExtension('code');
        $ciconia->removeExtension('image');
        $ciconia->addExtension(new Gfm\UrlAutoLinkExtension());
        $text = $ciconia->render($text);

My guess is there's something wrong with regexp being used but not sure how to fix it. I'll appreciate any help.

Regards

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