diff --git a/README.md b/README.md index d83518f..373e454 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,9 @@ require('nuwiki').setup({ template_default = 'default', template_ext = '.tpl', css_name = 'style.css', + custom_wiki2html = '', -- external converter; empty = built-in renderer + custom_wiki2html_args = '', -- extra args appended to the converter call + base_url = '', -- public URL prefix for RSS item links auto_export = false, -- export on save auto_toc = false, -- auto-refresh TOC on save auto_generate_links = false, -- regen Generated Links on save @@ -358,6 +361,9 @@ Each is a boolean. All default to `true` except `mouse`. | `css_name` | string | `'style.css'` | stylesheet filename | | `auto_export` | bool | `false` | `true` \| `false` (export on save) | | `html_filename_parameterization` | bool | `false` | `true` \| `false` | +| `custom_wiki2html` | string | `''` | external converter command; empty = built-in renderer. Called as ` ` (`-` for empty optionals), matching vimwiki | +| `custom_wiki2html_args` | string | `''` | extra args appended to the `custom_wiki2html` call | +| `base_url` | string | `''` | public URL prefix; when set, diary RSS item links become `/.html` instead of `file://` | | `exclude_files` | list | `{}` | glob patterns | | `color_dic` | table | `{}` | `{ name = 'color', … }` | diff --git a/crates/nuwiki-lsp/src/commands.rs b/crates/nuwiki-lsp/src/commands.rs index 9306830..526bd99 100644 --- a/crates/nuwiki-lsp/src/commands.rs +++ b/crates/nuwiki-lsp/src/commands.rs @@ -1143,7 +1143,7 @@ fn export_current( }))); } let name = crate::index::page_name_from_uri(&p.uri, Some(&cfg.root)); - let outcome = match crate::commands::export_ops::write_page(&doc.ast, &name, cfg) { + let outcome = match crate::commands::export_ops::write_page(&doc.ast, &name, cfg, false) { Ok(o) => o, Err(e) => return Err(format!("nuwiki.export.currentToHtml: {e}")), }; @@ -1222,7 +1222,7 @@ fn export_all(backend: &Backend, args: Vec, force: bool) -> Result