Skip to content

Releases: Amberg/DocxTemplater

v2.3.4

07 Nov 15:55
2899d75
Compare
Choose a tag to compare

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

31 Oct 13:19
1fd50f7
Compare
Choose a tag to compare

What's Changed

  • fix: html placeholder renders empty if model contains string empty or whitespace by @nfahrni in #26

New Contributors

Full Changelog: v2.3.2...v2.3.3

v2.3.2

30 Oct 09:38
b87b3e1
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.3.1...v2.3.2

v2.3.1

03 Oct 14:26
37225a1
Compare
Choose a tag to compare

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

Full Changelog: v2.3.0...v2.3.1

v2.3.0

19 Jun 06:59
14b54f1
Compare
Choose a tag to compare

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

12 Jun 06:40
e1cfd74
Compare
Choose a tag to compare
v2.3.0-beta.1 Pre-release
Pre-release

What's Changed

Full Changelog: v2.2.1...v2.3.0-beta.1

v2.3.0-alpha

05 Jun 06:34
1edeb93
Compare
Choose a tag to compare
v2.3.0-alpha Pre-release
Pre-release

What's Changed

  • Subtemplates and Conditional table rows by @Amberg in #14

Full Changelog: v2.2.1...v2.3.0-alpha

v2.2.1

21 May 09:12
0a69175
Compare
Choose a tag to compare

What's Changed

  • fix in documentation by @Amberg in #13
  • updated dependencies (vulnerability in SixLabors.ImageSharp)

v2.2.0

26 Feb 16:20
4347270
Compare
Choose a tag to compare

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

05 Feb 13:41
765bbf2
Compare
Choose a tag to compare

Improvements

V2.0.0 Syntax 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