#872819 ikiwiki: !table doesn't handle [foo][] links

Package:
ikiwiki
Source:
ikiwiki
Submitter:
Lars Wirzenius
Date:
2024-03-21 14:15:02 UTC
Severity:
normal
Tags:
#872819#5
Date:
2017-08-21 15:08:44 UTC
From:
To:
Dear Maintainer,

I create the following files.
----8<---- index.mdwn ----
    # Table link bug example

    The table below should have [link][] in the elements,
    but only [foo](http://foo.example.com) works.

    [link]: http://link.example.com

    [[!table data="""
    first | second
    [link][] | link?
    [foo](http://foo.example.com) | foo?
    [[bar|bar]] | bar?
    """]]
----8<----
----8<---- bar.mdwn ---- This exists ----8<---- And the following ikiwiki.setup file:
----8<---- # IkiWiki::Setup::Yaml - YAML formatted setup file wikiname: test url: "http://wiki.example.com" srcdir: /home/liw/tmp/ikwiki/src destdir: /home/liw/tmp/ikwiki/html add_plugins: - goodstuff disable_plugins: - recentchanges - favicon ----8<---- Then I run the following commandS: rm -rf html src/.ikiwiki mkdir html ikiwiki --setup ikiwiki.setup The result has (snipping all but the genarated table): <h1>Table link bug example</h1> <p>The table below should have <a href="http://link.example.com">link</a> in the elements, but only <a href="http://foo.example.com">foo</a> works.</p> <table> <thead> <tr> <th>first</th> <th> second</th> </tr> </thead> <tbody> <tr> <td>[link][]</td> <td> link?</td> </tr> <tr> <td><a href="http://foo.example.com">foo</a></td> <td> foo?</td> </tr> <tr> <td><a href="./bar/">bar</a></td> <td> bar?</td> </tr> </tbody> </table> Note how [foo][] got exanded in the text before the table, but not in the actual table. This surprises me and I consider it a bug.