[TxMt] markdown_to_help.rb Suggestion: Hyperlink back to TOC

Hans-Joerg Bibiko bibiko at eva.mpg.de
Thu Nov 23 13:55:13 UTC 2006


Hi,

I just tried out the new version of markdown_to_help.rb. It works  
perfectly. Many thanks! (Also with images via
echo "<base href='tm-file://${TM_BUNDLE_SUPPORT// /%20}/  
help.markdown'>")

Now I have a tiny suggestion for an improvement:
I added a href back to TOC to each jump address. That means if you  
click lets say at the TOC entry 3.1.7, it jumps to 3.1.7 BlaBla and  
if you click at 3.1.7 it will jump back to TOC. That would increase a  
bit the navigation behaviour for large help files for instance. I've  
chosen the id=sect_0 as address for TOC.

I attach the modified markdown_to_help.rb to this mail as an example.  
Maybe the only thing which should be written better is the style  
attribute 'text-decoration:none' (I added it because it looks  
better ?). Maybe place this style to the css?

Best,

Hans

-------------- next part --------------
A non-text attachment was scrubbed...
Name: markdown_to_help.rb
Type: text/x-ruby-script
Size: 1845 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20061123/794ce8ec/attachment.rb>


More information about the textmate mailing list