diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-04-09 14:38:27 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-04-10 09:56:15 +0300 |
commit | ed827859f36ff5cc9b2360284b92cb56c5b88d41 (patch) | |
tree | 674e238696fb94ececaedb2a2ab7d84c086f9c60 /riki.md | |
parent | 87b6778163210748e1c80368cd5ca91afa4a07b9 (diff) | |
download | riki-ed827859f36ff5cc9b2360284b92cb56c5b88d41.tar.gz |
refactor: use html-page crate to represent HTML
Sponsored-by: author
Diffstat (limited to 'riki.md')
-rw-r--r-- | riki.md | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -623,7 +623,7 @@ _Requirement: the `meta title` directive sets page title._ given an installed riki given file site/index.mdwn from meta when I run riki build site output -then file output/index.html contains "<title>Yo</title>" +then file output/index.html contains "<TITLE>Yo</TITLE>" ~~~ ~~~{#meta .file .markdown} @@ -640,7 +640,8 @@ given an installed riki given file site/a.mdwn from use_shortcut given file site/b.mdwn from define_shortcut when I run riki build site output -then file output/a/index.html contains "<a href="https://example.com/foo/123">foo!123</a>" +when I run cat output/a/index.html +then file output/a/index.html contains "<A href="https://example.com/foo/123">foo!123</A>" ~~~ ~~~{#use_shortcut .file .markdown} @@ -660,13 +661,13 @@ given an installed riki given file site/index.mdwn from table when I run riki build site output when I run cat output/index.html -then file output/index.html contains "<table>" -then file output/index.html contains "<th><td>Greeting</td>" -then file output/index.html contains "<td>Greetee</td>" -then file output/index.html contains "<tr><td>hello</td>" -then file output/index.html contains "<td>world</td>" -then file output/index.html contains "<tr><td>goodbye</td>" -then file output/index.html contains "<td>cruel world</td>" +then file output/index.html contains "<TABLE>" +then file output/index.html contains "<TH><TD>Greeting</TD>" +then file output/index.html contains "<TD>Greetee</TD>" +then file output/index.html contains "<TR><TD>hello</TD>" +then file output/index.html contains "<TD>world</TD>" +then file output/index.html contains "<TR><TD>goodbye</TD>" +then file output/index.html contains "<TD>cruel world</TD>" ~~~ ~~~{#table .file .markdown} @@ -686,8 +687,8 @@ given an installed riki given file site/index.mdwn from toc when I run riki build site output when I run cat output/index.html -then file output/index.html contains "<li>Introduction</li>" -then file output/index.html contains "<li>Acknowledgements</li>" +then file output/index.html contains "<LI>Introduction</LI>" +then file output/index.html contains "<LI>Acknowledgements</LI>" ~~~ ~~~{#toc .file .markdown} |