Finishing touches on --link-images:

- Document in defaults file section of MANUAL.
- Add to pandoc-lua-engine writer option marshalling.
- Add to pandoc-server initialization of writer options.
This commit is contained in:
John MacFarlane
2024-09-08 09:07:55 -07:00
parent ca017b3c43
commit 25b9314472
3 changed files with 12 additions and 2 deletions
+4
View File
@@ -1974,6 +1974,10 @@ To include the built-in citeproc filter, use either `citeproc` or
| ``` | ``` |
+----------------------------------+-----------------------------------+
| ``` | ``` yaml |
| --link-images | link-images: true |
| ``` | ``` |
+----------------------------------+-----------------------------------+
| ``` | ``` yaml |
| --html-q-tags | html-q-tags: true |
| ``` | ``` |
+----------------------------------+-----------------------------------+
@@ -120,6 +120,11 @@ typeWriterOptions = deftype "WriterOptions"
(pushViaJSON, writerHTMLMathMethod)
(peekViaJSON, \opts x -> opts{ writerHTMLMathMethod = x })
, property "link_images"
"Include links to images instead of embedding in ODT"
(pushBool, writerLinkImages)
(peekBool, \opts x -> opts{ writerLinkImages = x })
, property "html_q_tags"
"Use @<q>@ tags for quotes in HTML"
(pushBool, writerHtmlQTags)
+3 -2
View File
@@ -302,8 +302,8 @@ server = convertBytes
, readerStripComments = optStripComments opts
}
let writeropts =
def{ writerExtensions = writerExts
let writeropts = def
{ writerExtensions = writerExts
, writerTabStop = optTabStop opts
, writerWrapText = optWrap opts
, writerColumns = optColumns opts
@@ -337,6 +337,7 @@ server = convertBytes
, writerFigureCaptionPosition = optFigureCaptionPosition opts
, writerTableCaptionPosition = optTableCaptionPosition opts
, writerPreferAscii = optAscii opts
, writerLinkImages = optLinkImages opts
}
let reader = case readerSpec of