1
0
mirror of https://github.com/svg/svgo.git synced 2025-04-19 10:22:15 +03:00

9 Commits

Author SHA1 Message Date
strarsis
19c77d2398
Add mergeStyles plugin (#1381) 2021-03-27 16:59:56 +03:00
Bogdan Chadkin
5314c12c99 Convert element children to xast
Ref https://github.com/syntax-tree/xast

Renamed content to children to match xast spec.
2021-03-11 12:29:13 +03:00
Bogdan Chadkin
73768cb65b Fix types 2021-03-10 17:36:36 +03:00
Bogdan Chadkin
c50decb438 Convert cdata and text nodes to xast
Ref https://github.com/syntax-tree/xast

More consistent naming and distinction by type looks a bit cleaner.
2021-03-10 16:16:11 +03:00
Sebastian Kreft
6842b47cc7
Add TS support (#1370)
Added Typescript support via JSDoc comments for some files.

The code has really outdated type signatures, so in order to fully type the codebase the changes need to be incremental.

To check the types run:
npx tsc
2021-03-04 16:30:28 +03:00
Bogdan Chadkin
71e47370bd
Format lib with prettier (#1386)
Note: review with hidden whitespaces
2021-02-28 10:56:16 +03:00
Stephanie Miller
e7b8a6ce7d Upgrade css-tree from alpha25 to alpha.28
API changed walkFoo(ast, fun) to walk(ast,{visit: 'Rule',enter: fun)
csstree.translate renamed to csstree.generate
csstree.generate throws an error on invalid style where translate silently ignored it - update style processing to catch and ignore instead
Updated tests - csstree now omits more whitespace
2018-09-15 14:43:28 +03:00
GreLI
d828a62100 Bump dependencies and minor fix for inlineStyles 2017-10-22 22:30:17 +03:00
strarsis
2523799a12 Add inlineStyles plugin (rewrite of localStyles plugin) (#592)
Add inlineStyles plugin
2017-10-22 21:57:47 +03:00