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

Some internal links are not rendered properly #55

Closed
avaranovich opened this issue Apr 18, 2013 · 7 comments
Closed

Some internal links are not rendered properly #55

avaranovich opened this issue Apr 18, 2013 · 7 comments

Comments

@avaranovich
Copy link

Consider for example this

[[Script:bla_bla_bla_bla | Foo]]

should be rendered as

<a href="Script:bla_bla_bla_bla">Foo</a>

but renders as

<a href="Script:bla_bla_bla_bla"><span class="resource-prefix">Script</span>:<span class="resource-postfix">bla_bla_bla_bla</span></a>
@nricciar
Copy link
Owner

Are you using this with the github wiki? or an older version? I'm getting what one would expect...

<p><a href="script:bla_bla_bla_bla ">Foo</a></p>

It looks like something else is modifying your links if you get output like that.

@avaranovich
Copy link
Author

Sorry, what do you mean by the "github wiki"?

@nricciar
Copy link
Owner

As in using wikicloth on github.com (project wiki pages). Github handles all the linking prior to passing the mediawiki document to WikiCloth.

@avaranovich
Copy link
Author

I just created a test document on my filesystem. Then run ruby run_tests.rb and looking at the resulting HTML. Nothing to do with github. I just merged my fork with the master -- the same issue

@nricciar
Copy link
Owner

Looks like its your code that is adding those html tags... line 185 in your lib/wikicloth/wiki_link_handler.rb

@avaranovich
Copy link
Author

Oh I see, but that code existed when I forked the project..I apply the change from your master and the issue is gone indeed.

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