Home » Projekte » Webber » Plugins » link.py

Create HTML links

This plugin converts strings in the form

[[url]]
[[text|url]]
[[#anchor]]
[[text|url#anchor]]

into HTML <a href=...> tags.

Automatic linkification 

Instead of an URL you can also specify the following things:

In this case the link plugin will search through all pages and take the first match.

Example:

Suppose you've two file "testfile.md" and "testfile2.md" which looks like this:

title: Foo
linktitle: bar

title: Test2

then the following two links

[[Foo]]
[[bar]]
[[testfile2]]

will produce two links to the first file and one link to the second file. All text part of the HTML link will be substituted with the title of the referred pages, except you specify a text by yourself.