Repository navigation
docrs 1.0.0
The first stable release. The library, the command line and the Node.js package follow semantic versioning from here on. Nothing is removed: fromTiptap and from-markdown --from still work.
Library
- A header or footer left behind by
set_linked_to_previous(true)is no longer searched or edited.find_textandreplace_allwent on finding text in it until the document was saved and reopened. Which parts the document reaches is now worked out again whenever an edit adds or removes a part or changes a relationship. - Page estimates no longer count a nested field's result as visible text while the field around it is still in its code.
{ IF { MERGEFIELD … } … }measured the inner result, which moved the page numbers a table of contents estimates. - A role that fails no longer hides another role whose name starts the same way. A failed
table_captionmademarkdown-stylesreporttablemissing with Table Grid present, and a faileddefinition_termdid the same todefinition. - Every table of contents in one document gets page numbers and the front matter's
toc-depth. With front-mattertocand a[TOC]both present, the first contents kept "1" for every page, and the[TOC]one ignoredtoc-depthand did not ask Word to update fields. - TOML front matter reads top-level keys only up to the first table header, so a
titleunder[params]no longer replaces the document's title. A multi-line array or"""string is read whole, so a[inside one does not start a table. Arrays skip comments and escaped quotes, and multi-line basic strings decode their escapes. - HTML elements whose end tag is left out close the way the HTML standard says, each tag closing only up to the scope it belongs to. Before,
<tr><td>a<tr><td>blost a row, a second<td>nested inside the first,<li><p>one<li>made a sub-item, and<p>x<blockquote>…left the quote empty. Well-formed HTML converts as before. - A
>inside a quoted HTML attribute value, as intitle="x > y", no longer ends the tag. - When a span sets
background-colormore than once, the last value is its highlight, as CSS has it. Before, the first one won. TipTap output is unchanged. - The refusal to edit a protected document says how to acknowledge the protection:
--acknowledge-protectionon the command line,Document::acknowledge_protectionin the library.
Command line
replace --nth N --allis refused withargument_conflict(exit 2) and leaves the file untouched, as--placeholderwith--appendalready is. Before,--nthwas ignored and every match was replaced.