# Conertion: Wiki -> Html Execute (Copy Wiki's Resources): Log "Start: Copy Resources" call CopyResources() ################################################# Given vimwiki (Comments): This is some text %% This is a comment Test%%+INLINE COMMENT+%%1 %%+INLINE COMMENT+%%Test2 Test3%%+INLINE COMMENT+%% %%+ Multiline comment that is removed +%% Final text Do (Convert): :call ConvertWiki2Html()\ # Keep only body ggd/\ Expect (Comments Removed):

This is some text Test1 Test2 Test3

Final text

Execute(Delete): call DeleteFile('$HOME/testwiki/test_html_table.wiki') call DeleteFile('$HOME/html/default/test_html_table.html') ################################################# Given vimwiki (Table no heading {{{1): | header1 | header2 | | val1 | val2 | | val1 | val2 | | val1 | val2 | Do (Convert): :call ConvertWiki2Html()\ # Keep only body ggd/\ Expect (Table no heading):
header1 header2
val1 val2
val1 val2
val1 val2
Execute(Delete): call DeleteFile('$HOME/testwiki/test_html_table.wiki') call DeleteFile('$HOME/html/default/test_html_table.html') Given vimwiki (Table with heading {{{1): | header1 | header2 | header3 | |---------|---------|---------| | val1 | val2 | var3 | | val4 | val5 | var6 | Do (Convert): :call ConvertWiki2Html()\ # Keep only body ggd/\ Expect (Table with heading):
header1 header2 header3
val1 val2 var3
val4 val5 var6
Execute(Delete): call DeleteFile('$HOME/testwiki/test_html_table.wiki') call DeleteFile('$HOME/html/default/test_html_table.html') ################################################# Execute (Log): Log '#473: Syntax "local:" doesnt work as expected. #473' Given vimwiki (Void Md): Execute (Edit Test473 Wiki): edit $HOME/testwiki/TestHtml.wiki Do (Add local link: [[local:$HOME/here|Link]]): :edit $HOME/testwiki/Test473.wiki\ i [[local: \=$HOME\ /here|Link]] \ :call WriteMe()\ :Vimwiki2HTML\ Execute (Save and Convert to html): edit $HOME/testwiki/Test473.wiki Vimwiki2HTML AssertEqual '[[local:'.$HOME.'/here|Link]]', getline(1) Given (Void Html): # TODO mutualise Do (Get Html body): :read $HOME/html/default/Test473.html\ # Goto body gg/\ # Copy in b "bdat # Delete All ggdG # Paste body "bP # Remove last line Gdd # Save (Not necessary) :write Expect (Local link):

Link

Execute (Delete): call DeleteFile(' $HOME/testwiki/Test473.wiki') ################################################# Given (Void): Execute (Edit TestHtml Wiki): edit $HOME/testwiki/TestHtml.wiki AssertEqual $HOME . '/testwiki/TestHtml.wiki', expand('%') AssertEqual 'default', vimwiki#vars#get_wikilocal('syntax') AssertEqual 0, vimwiki#vars#get_bufferlocal('wiki_nr') Do (Markdwon with %plainhtml): :edit $HOME/testwiki/TestHtml.wiki\ i%plainhtml
\ my paragraph\ %plainhtml
\\ :set bt=\ :write\ Execute (Save and Convert to html): edit $HOME/testwiki/TestHtml.wiki Vimwiki2HTML Given (Void): Do (Get Html body): :read $HOME/html/default/TestHtml.html\ # Goto body gg/\ # Copy in b "bdat # Delete All ggdG # Paste body "bP # Remove last line Gdd # Save (Not necessary) :write Expect (Plain Html): # the whole default html file should be here as a base + the modifications # from "Given"

my paragraph

Execute (Delete): call DeleteFile('$HOME/testwiki/TestHtml.wiki') # vim: sw=2 foldmethod=marker foldlevel=30