Commit Graph

93 Commits

Author SHA1 Message Date
Marcin Woźniak a17b1bc6d4 Updated
Signed-off-by: Marcin Woźniak <y0rune@aol.com>
2020-08-30 21:52:26 +02:00
kaphula 35af13c1ef Moved safe_line_html call after the %plainhtml check so it does not convert essential html characters such as < and > to ampersand form. 2020-04-20 22:11:40 -04:00
kaphula 867d81a50c Added new feature to insert plaintext to the final html conversion file. 2020-04-18 13:04:55 -04:00
Rane Brown 1a4e1ed1ae Stylistic changes to pass vint tests.
Two non-stylistic errors were also fixed:
  1. Removed duplicate function with invalid argument usage
  2. Added missing quotes to a function call argument
2019-12-20 20:41:03 -07:00
Michael Brauweiler c48637fd99
Add better echoing of custom wiki2html script
This commit adds a check to the call of the wiki2html script,
so that it is only echoed if it actually produces output.
2019-12-08 12:05:25 +08:00
Greg Anders ddf7e5e0ff Allow forcing VimwikiAll2HTML with ! 2019-05-20 08:22:15 -06:00
Patrick Davey 5f01182468 Add html_filename_parameterization option.
This adds the vimwiki_local `html_filename_parameterization` option (0|1)
which performs the same sanitization of filenames as does the
vimwiki_markdown gem.

For example, if your file is called "My File.md" it will be written out
as "my-file.html".

If the html_filename_parameterization options is enabled, we also _do
not delete_ non-matching html files when the VimwikiAllToHtml command is
run.

Closes #129
2019-04-13 10:07:51 +12:00
Rane Brown c8d09d7c9e
Merge pull request #629 from gpanders/dev
Allow customization of header level of TOC
2019-03-18 17:20:30 -06:00
Henry Qin efcc3f1fa5 Merge branch 'wiki-path' into 'dev'. Closes #573.
Introduce a `%wiki_path%` variable which can be used in HTML template
files to output the path of the wiki file being converted to HTML.
2019-03-17 18:19:49 -07:00
Hugo Hörnquist 2f87f92060 Better foreground for colorcodes. 2019-03-17 22:40:34 +01:00
Greg Anders bb40826def Allow customization of header level of TOC
Instead of forcing the TOC to always be at header level 1, allow the
user to specify via the option g:vimwiki_toc_header_level what level
they want.

This defaults to 1, so if the user does nothing then the old behavior
will remain the same.
2019-03-14 08:34:52 -06:00
Hugo Hörnquist 08ec02a755 Alternative where text color is inverse of background. 2019-02-19 21:04:57 +01:00
Hugo Hörnquist 21f5069e48 Code-blocks auto-color. 2019-02-19 20:45:10 +01:00
Hugo Hörnquist bda3a59f91 Made headings link to themselves.
Made each heading link to itself, by placing an <a> tag inside each
<h[1-6]> tag.

Also adds class="header" to each header, allowing for the CSS rule
    .header a { ...  }
to remove all styling from the inner links, allowing the outputed
document to look like before.
2019-01-30 21:13:29 +01:00
EinfachToll 6257c8fa54 Revert "Allow to specify additional chars for lists"
This reverts commit 75819ca23a.
2019-01-17 21:57:42 +01:00
Michael F. Schönitzer 75819ca23a Allow to specify additional chars for lists
See also #390 and #479 for earlier attempts
2019-01-03 21:02:21 +01:00
EinfachToll a653e2d8c2 HTML converter: trim strings correctly
The old version didn't remove trailing spaces.
2018-11-25 17:56:43 +01:00
EinfachToll 7969810b49 Fix losing highlighting after VimwikiAll2HTML
Apparently, switching buffers in connection with disabled events caused
the highlighting to disappear. Solution: use the :wa command to save all
buffers. A disadvantage is that now also non-Vimwiki buffers are saved,
but I think that is bearable.
2018-10-27 17:01:52 +02:00
Hugo Hörnquist 28727b3971 Add %wiki_path% template variable. 2018-10-11 14:25:55 +02:00
EinfachToll 3f8bb1261f Make some functions script-local 2018-04-20 07:13:21 +02:00
EinfachToll c1dbf90c29 Remove foldmarkers; general reformatting 2018-04-20 07:03:53 +02:00
EinfachToll cdc37162a9 Escape only '"' in links
Fix #467
Ref #474
2018-04-16 20:40:18 +02:00
Petrus 65c4ffacca fix missing custom_wiki2html_args default key
Ref #475
2018-04-13 11:03:21 +02:00
Michael F. Schönitzer 9b5e4b445a Revert previous changes 2018-04-04 16:54:41 +02:00
Michael F. Schönitzer 89d28a72c5
Merge branch 'beta' into dev 2018-04-04 02:27:27 +02:00
EinfachToll b016eab91a Set 'tw' to 99 in all source files. We're not in the middle ages anymore. 2018-02-21 07:11:51 +01:00
EinfachToll f8ee21aa64 Merge branch 'refactor-internal-state-handling' into dev
Conflicts:
	autoload/vimwiki/base.vim
	autoload/vimwiki/diary.vim
	autoload/vimwiki/html.vim
	autoload/vimwiki/lst.vim
	autoload/vimwiki/markdown_base.vim
	doc/vimwiki.txt
	ftplugin/vimwiki.vim
	plugin/vimwiki.vim
	syntax/vimwiki.vim
	syntax/vimwiki_default.vim
	syntax/vimwiki_markdown.vim
	syntax/vimwiki_media.vim
2018-02-19 17:56:17 +01:00
EinfachToll 1e858b50cb Cherry-pick the changes from dev -- part7 2018-02-19 07:07:22 +01:00
EinfachToll 3756c6258b Cherry-pick the changes from dev -- part4 2018-02-16 21:42:32 +01:00
EinfachToll 73bda6b9ab Cherry-pick the changes from dev -- part3 2018-02-16 18:11:49 +01:00
EinfachToll 19f398c73e Cherry-pick the changes from dev -- part 1 2018-02-16 07:26:42 +01:00
Michael F. Schönitzer d4240083f7 Merge pull request #3 from Nudin/individualli
Allow to specify additional chars for lists
2017-09-16 17:09:41 +02:00
Michael F. Schönitzer 41e653718e Allow to specify additional chars for lists 2017-09-16 16:30:22 +02:00
Michael F. Schönitzer f917b01998 Html-export: Add support of rejected Todo-listentry 2017-08-05 16:45:35 +02:00
s 3ecf9c544a set additional custom arguments in g:vimwiki_list
(custom_wiki2html_args) which will then be passed to the appropriate
custom_wiki2html script.
2017-07-11 21:52:41 +02:00
EinfachToll f6437ebdf5 Fix regexps of placeholders
- the highlighting was wrong when the placeholder is indented
- %titleBla was wrongly recongnized as placeholder
- make them more robust by prepending \m
2017-07-08 22:08:41 +02:00
Yuchen Pei 28177c33e3 Added date placeholder. (#360)
* added date placeholder.

* made today the default.
2017-07-08 21:04:54 +02:00
EinfachToll be79f68a92 Merge pull request #285 from MichaelThessel/dev
Added config option to allow for newlines in text when exporting to HTML
2017-01-30 20:43:26 +01:00
Michael F. Schönitzer c857be2f87 Allow g:vimwiki_listsyms be larger than 5 elements (Issue #275) (#279)
* Allow g:vimwiki_listsyms to be of arbitrary size

* Update documentation

* Add support for arbitrary size listsyms to vimwikihtml
2017-01-22 20:16:10 +01:00
EinfachToll 31760a7ef7 Fix a few regression bugs
Ref #256
2017-01-16 22:10:28 +01:00
EinfachToll ce5c822072 Start refactoring the rest -- part 6
Ref #256
2017-01-12 21:45:09 +01:00
EinfachToll b61ff8b5ee Start refactoring the rest -- part 6
Ref #256
2017-01-11 22:12:33 +01:00
EinfachToll 1806d3edfa Start refactoring the rest -- part 5
Ref #256
2017-01-07 21:51:15 +01:00
Michael Thessel 8507c95716 Added config option to allow for newlines in text when exporting to HTML 2017-01-05 22:17:37 -08:00
EinfachToll 250fd3c47b Use new access functions for wiki-local variables -- part 5
Ref #256
2016-12-23 20:05:53 +01:00
EinfachToll 2329d602a7 Use new access functions for wiki-local variables -- part 4
Ref #256
2016-12-22 21:00:19 +01:00
EinfachToll f497a4abc7 Use new access functions for wiki-local variables -- part 3
Ref #256
2016-12-22 19:55:20 +01:00
EinfachToll 61910cd93a Use new access functions for wiki-local variables -- part 2
Ref #256
2016-12-22 19:12:03 +01:00
EinfachToll 6221861957 Use new access functions for wiki-local variables -- part 1
Ref #256
2016-12-22 18:16:05 +01:00
EinfachToll 23ee20887a Use new access functions for global variables -- part 3
Ref #256
2016-12-21 22:11:44 +01:00