Releases: Amberg/DocxTemplater
Releases · Amberg/DocxTemplater
v2.3.4
What's Changed
- Fixed: Bookmarks within tables that previously caused crashes.
- Fixed: Parsing issue with expressions using the modulo operator ("%").
Added documentation for the Image Formatter and the special loop variable for accessing index values.
Full Changelog: v2.3.3...v2.3.4
v2.3.3
v2.3.2
v2.3.1
What's Changed
- Update README.md by @Amberg in #19
- Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /DocxTemplater.Images by @dependabot in #20
- fix in collection separator block by @Amberg in #22
New Contributors
- @dependabot made their first contribution in #20
Full Changelog: v2.3.0...v2.3.1
v2.3.0
Features
- Markdown Support: Added a markdown formatter to convert Markdown strings to OpenXML. The Markdown can include placeholders using {{..}}.
- Sub Template support: Templates can now contain sub-templates.
- Configuration Attribute The default formatter can now be configured with an attribute on the model property:
[ModelProperty(DefaultFormatter = "F(n2)")]
public decimal Number { get; set; }`
Improvements
Image Formatter: Image Size and Rotation can no be configured through arguments:, e.g., ds.img(w:14cm, h:3cm, r:90)
Bug Fixes
- Conditional blocks containing
||
or&&
were sometimes not parsed correctly - Nested conditional block in collections were sometimes not parsed correctly
v2.3.0-beta.1
What's Changed
Full Changelog: v2.2.1...v2.3.0-beta.1
v2.3.0-alpha
What's Changed
Full Changelog: v2.2.1...v2.3.0-alpha
v2.2.1
v2.2.0
Features / Improvements
- Rotation of containing text box is applied to Image
- Insertion of Newlines possible
- Images are reused if they are bound multiple times. This can significantly reduce the file size
Fixes
- Readme typos
- Fixed broken row in nested grids
- Typo fix in error messages
Full Changelog: v2.0.0...v2.2.2
v2.0.0
Improvements
- Add html tag around Html content if missing
- Null check for stream in DocxTemplate ctor
- Better error message for not closed blocks
- treat null collection as empty collection in LoopBlock
- Handle null values in intermediate nested objects with null propagation
Fixes
- Nested loop and conditions sometime where not replaced correctly if not not all branches contained same child blocks
- Apply image scaling correctly for inline text boxes
- Arguments that contain ":" are now parsed