diff options
| author | Evan Silberman <[email protected]> | 2025-02-06 14:39:17 -0800 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2025-02-07 14:04:12 -0800 |
| commit | 97b36ecb7703b434ed4325cc128402a9eb32418d (patch) | |
| tree | fe83694506972b24015a79e226565c1edf62e653 /test/vimwiki-reader.native | |
| parent | cb8f7645b5ca894e0a840953185b839302817fa6 (diff) | |
Track wikilinks with a class instead of a title
Once upon a time the only metadata element for links in Pandoc's AST was
a title, and it was hijacked to track certain links as having originated
in the wikilink syntax. Now we have Attrs and we can use a class to
handle wikilinks instead.
Requires coordinated changes to commonmark-hs.
Diffstat (limited to 'test/vimwiki-reader.native')
| -rw-r--r-- | test/vimwiki-reader.native | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/vimwiki-reader.native b/test/vimwiki-reader.native index b8f853ce0..047df1de1 100644 --- a/test/vimwiki-reader.native +++ b/test/vimwiki-reader.native @@ -559,13 +559,13 @@ Pandoc [ Str "internal" , Space , Str "links" ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "This is a link" ] - ( "This is a link" , "wikilink" ) + ( "This is a link" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "Description" , Space , Str "of" @@ -574,27 +574,27 @@ Pandoc , Space , Str "link" ] - ( "This is a link source" , "wikilink" ) + ( "This is a link source" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "projects/Important Project 1" ] - ( "projects/Important Project 1" , "wikilink" ) + ( "projects/Important Project 1" , "" ) , SoftBreak , Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "../index" ] - ( "../index" , "wikilink" ) + ( "../index" , "" ) , SoftBreak , Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "Other" , Space , Str "files" ] - ( "a subdirectory/" , "wikilink" ) + ( "a subdirectory/" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "try" , Space , Str "me" @@ -607,11 +607,11 @@ Pandoc , Space , Str "anchors" ] - ( "#tag-one" , "wikilink" ) + ( "#tag-one" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "try" , Space , Str "me" @@ -624,11 +624,11 @@ Pandoc , Space , Str "anchors" ] - ( "#block quotes" , "wikilink" ) + ( "#block quotes" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "try" , Space , Str "me" @@ -641,19 +641,19 @@ Pandoc , Space , Str "anchors" ] - ( "#strong" , "wikilink" ) + ( "#strong" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "Tasks" , Space , Str "for" , Space , Str "tomorrow" ] - ( "Todo List#Tomorrow" , "wikilink" ) + ( "Todo List#Tomorrow" , "" ) ] , Para [ Link - ( "" , [] , [] ) + ( "" , [ "wikilink" ] , [] ) [ Str "diary:2017-05-01" ] - ( "diary/2017-05-01" , "wikilink" ) + ( "diary/2017-05-01" , "" ) ] , Para [ Link |
