You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Node.js
fromMarkdown, fromHtml and fromJson take a fields option that fills {{Name}} merge fields once converted, in the body, headers, footers and text boxes: fields: { "Client Name": "Jo Smith", Adviser: "" }. A field Word has split across runs still fills, spaces inside the braces are allowed ({{ Ref }}), {{{Name}}} fills like {{Name}}, a field not named is left as it is, and "" blanks one. A value is text within one paragraph: one with a line break, tab or other control character, {{ or }} is refused (invalid_options, naming the field) whether or not the document holds the field. Under limits: "serverless" the text the fields add, every occurrence counted, is budgeted at 384 KiB (max_field_bytes). The report's new fields gives the replacements made, the names of fields left in the document and any replacement refused; it is null without the option. Contributed by Alex Swan (#30).