Skip to content
New issue

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

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

Already on GitHub? # to your account

Adressing local links #69

Closed
zdia opened this issue Aug 8, 2012 · 6 comments
Closed

Adressing local links #69

zdia opened this issue Aug 8, 2012 · 6 comments

Comments

@zdia
Copy link

zdia commented Aug 8, 2012

I am using Textile 2.4.0 to parse my marked up text files. Testing locally I have found that going up a directory level with ".." works with a text link:

"Tcl":../html/tcltk.html

but not with an image link:

!../html/image.jpg!

The parser will create only one dot:

./html/image.png

Thank you for maintaining this great markup engine!

@netcarver
Copy link
Contributor

Hello zdia,

thanks for reporting this.

@netcarver
Copy link
Contributor

zdia,

does !/../html/image.jpg! allow you to work around this?

@zdia
Copy link
Author

zdia commented Aug 16, 2012

Hi Steve,

Am 16.08.2012 15:01, schrieb Steve:

zdia,

does !/../html/image.jpg! allow you to work around this?

Unfortunately no, the browser shows just the code in plain text:

!/../html/sonne.jpg!

@netcarver
Copy link
Contributor

Hi zdia, sorry this has taken so long. I'm in the middle of rewriting some of textile's link handling code and just stumbled back on your issue so I thought I'd take a shot at fixing it at the same time. Could you try the link-detection-rewrite branch and let me know if it fixes things for you or introduces any other issues.

Please note that this is an experimental branch and needs some further work to optimize things.

Thanks!

@zdia
Copy link
Author

zdia commented Nov 10, 2012

Hi Steve,

Am 06.11.2012 11:36, schrieb Steve:

Hi zdia, sorry this has taken so long.

Never mind. We make it just for pleasure.

I'm in the middle of rewriting some of textile's link handling code
and just stumbled back on your issue so I thought I'd take a shot at
fixing it at the same time. Could you try the link-detection-rewrite
branch

and let me know if it fixes things for you or introduces any other
issues.

!../html/sonne.jpg!

works perfectly with 2.4.1

and and sample.txl which was broken with 2.4 works perfectly, too.

I have added a screenshot for the output of sample.txl

friendly regards!

Zbigniew

@netcarver
Copy link
Contributor

Closed by 7047f37 in the dev branch. Will be in the next release.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants