c6bb255641
Add hyphenation support ( #2678 )
...
* Add hyphenation support
* Remove unneeded linebreaks
* Add documentation and fix eslint
* Add tests
---------
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2024-11-21 10:41:31 +00:00
2381ba8a05
build(deps-dev): bump eslint from 8.57.1 to 9.13.0 ( #2792 )
...
* build(deps-dev): bump eslint from 8.57.1 to 9.13.0
Bumps [eslint](https://github.com/eslint/eslint ) from 8.57.1 to 9.13.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0 )
---
updated-dependencies:
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* Upgrade EsLint
* Fix all new lint errors
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com >
2024-10-21 03:57:15 +01:00
2bd4aacdd5
#2388 - Add default tab stop ( #2470 )
...
* #2388 - Check for undefined rather than falsey
* Add default tab stop
* Add back tab stop positions
* Add test for default tab stop
2023-12-24 03:37:36 +00:00
e69b063687
Porting tests over to vitest
2023-06-05 00:33:43 +01:00
988987ddbe
#1126 - Add all comptability options
2022-10-29 15:10:02 +01:00
1bdf9a4987
Initial ESlint conversion
2022-08-31 07:52:27 +01:00
982d923553
Improve import alias
...
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
60b7ce4785
clean up settings; BREAKING: TableOfContents requires Document features.updateFields = true setting
2021-05-26 08:36:05 +03:00
131183ae19
#613 #439 Even and odd headers
2021-03-16 00:57:27 +00:00
a3febae8a3
Inline single use interfaces
2021-03-15 00:11:39 +00:00
4159be5644
Add readonly
2021-02-27 01:42:29 +00:00
10455a534f
#332 Compatability mode
2021-02-27 01:40:55 +00:00
ed52ef358b
Background color for document
2020-10-27 01:54:40 +00:00
700a74fd4c
More math components
2020-10-10 13:41:26 +01:00
2adfe532dd
add more unit tests for trackRevision settings
2020-10-06 11:05:52 +02:00
6cbe40cecb
add settings option to add trackRevisions
2020-10-06 11:05:52 +02:00
77edf8862b
Added constant EMPTY_OBJECT (an empty sealed object) that is used to indicate to the xml
library that an empty XML element should be generated, and use it in the JSON hardcoded into the tests.
2019-04-10 13:47:38 -04:00
bb1604cd8f
Turn back on no-null-keyword. Use empty object instead of null
to signal to the xml
library that an empty element should be produced. Update the related tests.
...
Related to #306
2019-04-10 01:28:37 -04:00
816cb54b14
Optimize XML output by properly constructing objects to send to the xml library so that it can produce proper empty elements.
...
Rework the way attributes are stored in ImportedXmlComponent to match elsewhere (required allowing for a null xmlKeys in the XmlAttributeComponent interface).
Rework the way paragraphs get added to the end of table cells if needed.
The goal in both reworks is to not mess around with the objects output from `prepForXml` if we can avoid it.
Made the output of RunProperties, ParagraphProperties, TableCellProperties, TableRowProperties, and TableProperties all optional based on whether they contain any attributes or children. Changed code in PageBorders, TableCellMargin, and TableCellBorders that implemented this same thing by overriding `prepForXml` so that it uses the new XmlComponent subclass instead.
Removed commented out code that attempted to fix-up XML output and make proper empty elements.
Fixed all affected tests.
Turn off `no-null-keyword` in the linter as we need to use null to signal to the `xml` library to create an empty element with no attributes (`undefined` will not work in its place).
Fixes #306
2019-04-09 05:27:18 -04:00
b179facca2
Add setting for not justify lines ending in soft line break
2019-03-05 17:17:06 +01:00
7980f14efb
Introduce some functional programming techniques
2018-11-02 02:51:57 +00:00
4742cf0f3f
Clean imports
2018-10-26 01:04:07 +01:00
c07b5cf709
added settings.xml back
2018-09-20 10:11:59 -03:00
0eb36be053
there is no need for the settings.xml file anymore
2018-09-17 22:09:05 -03:00
146d0ad9e5
Moved addTableOfContents to File and creating a settings.xml and applying updateFields=true when there is a table of contents
2018-09-10 10:01:26 -03:00