easy-template-x 3.0.4 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/cjs/easy-template-x.js +573 -876
- package/dist/es/easy-template-x.js +527 -834
- package/dist/types/compilation/delimiterSearcher.d.ts +2 -0
- package/dist/types/plugins/image/imageContent.d.ts +1 -0
- package/dist/types/plugins/image/imagePlugin.d.ts +1 -0
- package/dist/types/plugins/link/linkContent.d.ts +1 -0
- package/package.json +2 -2
- package/src/compilation/delimiterSearcher.ts +70 -60
- package/src/plugins/image/imageContent.ts +4 -0
- package/src/plugins/image/imagePlugin.ts +22 -6
- package/src/plugins/link/linkContent.ts +1 -0
- package/src/plugins/link/linkPlugin.ts +9 -1
package/README.md
CHANGED
|
@@ -269,6 +269,7 @@ Input data:
|
|
|
269
269
|
_type: "image",
|
|
270
270
|
source: fs.readFileSync("hero.png"),
|
|
271
271
|
format: MimeType.Png,
|
|
272
|
+
altText: "Kung Fu Hero", // Optional
|
|
272
273
|
width: 200,
|
|
273
274
|
height: 200
|
|
274
275
|
}
|
|
@@ -294,7 +295,7 @@ Input data:
|
|
|
294
295
|
{
|
|
295
296
|
"easy": {
|
|
296
297
|
_type: 'link',
|
|
297
|
-
text: 'super easy', //
|
|
298
|
+
text: 'super easy', // Optional - if not specified the `target` property will be used
|
|
298
299
|
target: 'https://github.com/alonrbar/easy-template-x'
|
|
299
300
|
}
|
|
300
301
|
}
|
|
@@ -323,7 +324,7 @@ Input data:
|
|
|
323
324
|
"Dont worry be happy": {
|
|
324
325
|
_type: 'rawXml',
|
|
325
326
|
xml: '<w:sym w:font="Wingdings" w:char="F04A"/>',
|
|
326
|
-
replaceParagraph: false, //
|
|
327
|
+
replaceParagraph: false, // Optional - should the plugin replace an entire paragraph or just the tag itself
|
|
327
328
|
}
|
|
328
329
|
}
|
|
329
330
|
```
|