@@ -38,7 +38,6 @@ DokuWiki: <https://www.dokuwiki.org/dokuwiki>
38 [ ] Don't generate <div>
38 [ ] Don't generate <div>
39 [ ] Implement conversion of tables
39 [ ] Implement conversion of tables
40 [ ] Implement comments
40 [ ] Implement comments
41− [ ] Implement footnotes
42 [ ] Work through the Dokuwiki spec, and check I've not missed anything out
41 [ ] Work through the Dokuwiki spec, and check I've not missed anything out
43 [ ] Test the output in Dokuwiki - and compare against the display of another format, e.g. HTML
42 [ ] Test the output in Dokuwiki - and compare against the display of another format, e.g. HTML
44 [ ] Remove dud/duplicate code
43 [ ] Remove dud/duplicate code
@@ -77,7 +76,8 @@ pandocToDokuWiki opts (Pandoc meta blocks) = do
77 body <- blockListToDokuWiki opts blocks
76 body <- blockListToDokuWiki opts blocks
78 notesExist <- get >>= return . stNotes
77 notesExist <- get >>= return . stNotes
79 let notes = if notesExist
78 let notes = if notesExist
80− then "\n<references />"
79+ then "" -- TODO Was "\n<references />" Check whether I can really remove this:
80+ -- if it is definitely to do with footnotes, can remove this whole bit
82 let main = body ++ notes
82 let main = body ++ notes
83 let context = defField "body" main
83 let context = defField "body" main
@@ -438,5 +438,5 @@ inlineToDokuWiki opts (Image alt (source, tit)) = do
438inlineToDokuWiki opts (Note contents) = do
438inlineToDokuWiki opts (Note contents) = do
439 contents' <- blockListToDokuWiki opts contents
439 contents' <- blockListToDokuWiki opts contents
440 modify (\s -> s { stNotes = True })
440 modify (\s -> s { stNotes = True })
441− return $ "<ref>" ++ contents' ++ "</ref>"
441+ return $ "((" ++ contents' ++ "))"
442 -- note - may not work for notes with multiple blocks
442 -- note - may not work for notes with multiple blocks