wikilinks.lua cleanup
This commit is contained in:
@@ -1,10 +1,9 @@
|
|||||||
-- Pandoc's wikilinks_title_after_pipe extension makes a start at linking
|
-- Pandoc's wikilinks_title_after_pipe extension does basic hyperlinking
|
||||||
-- [[bracketed wiki links]]. This lua filter does the rest, mimicking
|
-- of [[bracketed wiki links]]. This lua filter does the rest, mimicking
|
||||||
-- Obsidian's wiki linking where possible. It
|
-- Obsidian's wiki linking where possible. It
|
||||||
-- - hyphen-replaces problem characters in the uri
|
-- - replaces spaces with hyphens in the uri path and fragment
|
||||||
-- - adds ".html" to the uri path
|
-- - adds ".html" to the path (preserving any fragment)
|
||||||
-- - preserves the uri fragment if any
|
-- - lower-cases the fragment
|
||||||
-- - lower-cases the uri fragment
|
|
||||||
|
|
||||||
function Link(elem)
|
function Link(elem)
|
||||||
if elem.title == "wikilink" then
|
if elem.title == "wikilink" then
|
||||||
Reference in New Issue
Block a user