1. Anchors in eudoc/creole tables
- Posted by ArthurCrump Mar 24, 2014
- 1346 views
Using eudoc/creole is there any easier way to put destination anchors in tables other than resorting to native html?
Arthur
2. Re: Anchors in eudoc/creole tables
- Posted by _tom (admin) Mar 25, 2014
- 1156 views
Using eudoc/creole is there any easier way to put destination anchors in tables other than resorting to native html?
Arthur
You can put a plain anchor within a table. I created two text files and then converted them to html using creole.
source.txt
Here is the source: Please goto [[ destination.html#anchorname ]]
destination.txt
Here is an anchor: | cell1 | @[ anchorname ] | | cell3 | cell4 |
After running creole you have: source.html and destination.html
From the source.html file you can clik the link and open the anchor in the second file.
What is missing is the ablity to make an "invisible anchor" or an "anchor with alternative text".
The syntax
@[ anchorname | bettername ]
does not work within a table because the '|' glyph is used to make tables.
So, maybe D. Parnell will provide us with the option to write
@[ anchorname <- bettername ]
(or something like it).
_tom
3. Re: Anchors in eudoc/creole tables
- Posted by ArthurCrump Mar 25, 2014
- 1161 views
Thank you. A visible anchor will be sufficient for now.
Arthur
4. Re: Anchors in eudoc/creole tables
- Posted by DerekParnell (admin) Mar 25, 2014
- 1117 views
The syntax
@[ anchorname | bettername ]
does not work within a table because the '|' glyph is used to make tables.
So, maybe D. Parnell will provide us with the option to write
@[ anchorname <- bettername ]
(or something like it).
When I got home last night I looked into the source code and I'm sure I can improve the parsing of the 'anchor' tag so it can be used inside tables. The way I do it now is quite lazy, I'm ashamed to say.
Also, the way to link to an anchor is by using the this tag ... [[:anchorname]] or [[:anchorname | alternatetext ]]