Commit Graph
71 Commits
Author SHA1 Message Date
Seiya f2cfef1ec2 Correct frontmatter length measurement (#18453) 2025-12-09 23:22:42 +08:00
fisker c4905e5be9 Clean changelog_unreleased 2025-11-27 16:31:35 +08:00
e2d0ba890e Support format allow attribute of iframe (#17879)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-25 09:48:21 +08:00
72cfa18a42 Support format html event attributes (#17909)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-24 01:29:56 +08:00
fisker f67b32ba66 Clean changelog_unreleased 2025-06-23 10:10:54 +08:00
fisker Cheung 2763319027 Fix HTML format that tag name is an object prototype property (#17501) 2025-06-02 22:56:07 +08:00
Sosuke Suzuki c52f441846 Clean changelog_unreleased 2024-01-13 01:22:01 +09:00
fisker Cheung 8227c0a69e Fix formatting of prettier-ignored unclosed elements (#15748) 2023-12-13 16:13:26 +08:00
Sosuke Suzuki a3e1be82b6 Clean changelog 2023-11-13 12:04:23 +09:00
fisker Cheung bf7d90ae84 Switch html-styles to html-ua-styles (#15334) 2023-09-14 09:45:15 +08:00
Sosuke Suzuki 266344398c Clean changelog 2023-07-06 01:47:41 +09:00
fisker Cheung ecfa324b69 Format <script> inside SVG (#14400) 2023-04-10 10:43:48 +08:00
fisker Cheung 75cd9992f0 Recognize the new search element (#14615) 2023-03-29 09:14:24 +08:00
Georgii Dolzhykov b893eeefb2 Update angular-html-parser (#13578) 2022-10-03 16:38:22 +03:00
fisker Cheung f8fff81005 Print HTML5 doctype in lowercase (#7391) 2022-08-08 01:13:18 +08:00
fisker Cheung c7c99305e9 Clean changelog 2022-06-14 14:40:54 +08:00
Sosuke Suzukiandfisker Cheung 934068ac6a Add 2.7 blog post (#12966)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-06-14 14:25:40 +08:00
Sosuke Suzuki 36c20c51bc Support Speculation Rules API formatting in HTML (#12882)
* Add script formatting for `speculationrules`

* Fix lint problems
2022-05-17 10:38:46 +09:00
Sosuke Suzuki 58e48b79da Clean changelog_unreleased 2022-03-16 13:35:41 +09:00
eb671dd983 2.6 blog post (#12412)
* Generate

* Generate

* Add TS4.6 changelog

* Regenerate

* Add changelog to switch to esbuild

* Add category

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Address review

* Regenerate

* Highlight TS 4.6

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Regenerate

* Update changelog_unreleased/typescript/12390.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Add thanks message for sponsors

* Address review!

* Update cspell.json

* Fix link of Ubie

* Generate

* Add `Thanks to our sponsors!`

* Update cspell

* Address review

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>

* Regenerate

* Add `--print-truncate` option

* Address review

* Generate

Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2022-03-16 13:25:48 +09:00
Jere Kankaanrantaandfisker Cheung 82e6937d50 Added changelog and updated the "first available in" version for singleAttributePerLine (#11934)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-12-07 14:13:26 +08:00
sosukesuzuki 7fc196e96b Clean changelog_unreleased 2021-11-25 23:12:16 +09:00
04aa850fde Add 2.5 blog (#11823)
* Mark highlights

* Update intro

* Draft

* Update changelog

* Update changelog

* Regenerate draft

* Update TS 4.5 blog URL

* Regenerate draft

* Fix by prettier

* Fix

* Remove changelogs released already

* Address review

* Update

* Regenerate draft

* Regenerate draft

* Regenerate

* Update changelog_unreleased/typescript/11515.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/typescript/11721.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/mdx/11563.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/mdx/11563.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update website/blog/2021-11-21-2.5.0.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update website/blog/2021-11-21-2.5.0.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Regenerate

* Address reviews

* Regenerate

* Use examples

* Regenerate

* Address review

* Renegrate

* Address review

* Regenerate

* MDX 2 comments => MDX v2 comment syntax

* Fix

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Lucas Azzola <derflatulator@gmail.com>

* Update changelog_unreleased/typescript/11721.md

Co-authored-by: Lucas Azzola <derflatulator@gmail.com>

* Regenerate

* Update changelog_unreleased/typescript/11515.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Regenerate

* Address review

* Regenerate

* Address review

* Regenerate

Co-authored-by: Jed Fox <git@jedfox.com>
Co-authored-by: Lucas Azzola <derflatulator@gmail.com>
2021-11-25 23:04:16 +09:00
James Longandfisker Cheung 6bf6b20aed Reverts #7865, keeping class names on the same line (#11827)
* Reverts #7865, keeping class names on the same line

* Add changelog

* Fix lint

* Fix

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-11-18 16:10:41 +09:00
sosukesuzuki d812687502 Clean changelog 2021-09-09 18:29:57 +09:00
Sosuke SuzukiandJed Fox 07476f80a7 2.4 blog post (#11457)
* Mark highlights

* Add new draft

* Update intro

* Fix typo

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Address review

* Address review

* Address review

* Regenerate draft

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Address review

* Regenerate draft

* Regenerate draft

Co-authored-by: Jed Fox <git@jedfox.com>
2021-09-09 18:24:31 +09:00
4992d97203 Deprecate jsxBracketSameLine option in favour of multi-language bracketSameLine option (#11006)
* deprecate jsxBracketSameLine in favour of multi-language angleBracketSameLine option

* update docs and snapshots

* update tests to to make them more reviewable

* Rewrite angular tests

* Rewrite html tests

* Rewrite vue tests

* Restore unnecessary changes in jsx

* Fix file location

* Test both `true` and `false`

* Revert changes in markdown

* Run tests on all js parsers

* Improve html test

* fix changelog comment

* move bracketSameLine to common options

* mark jsxBracketSameLine as deprecated

* Update changelog_unreleased/html/11006.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* Update 11006.md

* fix tests by removing `jsxBracketSameLine` `default` property

* fix style

* Revert docs under website dir

* Add tests for deprecated options

* Fix lint problems

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 11:47:50 +09:00
Sosuke Suzuki e2694e2b21 Clean changelog_unreleased (#11033) 2021-06-09 14:42:00 +09:00
tkalmarandGeorgii Dolzhykov fbca25cf8b Allow : as class prefix-delimeter (#10906)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-05-21 18:21:28 +08:00
Georgii Dolzhykov 171b1ee2bf Clean changelog_unlreleased 2021-05-10 00:17:59 +03:00
Georgii Dolzhykov c7b6116a45 Mark formatting improvements in changelog 2021-04-21 02:58:49 +03:00
fisker Cheung 12bddae20c Switch default branch to main (#10115) 2021-01-23 19:14:13 +02:00
7cf524fa03 Smarter formatting of HTML class attribute (#7865)
* html: break class attr onto multiple lines, but try keeping consecutive classes with the same prefix on one line

* add changelog

* add more tests

* improve doc structure to fix an issue with the closing quote

* Update changelog_unreleased/html/pr-7865.md

Co-Authored-By: Jed Fox <git@twopointzero.us>

* handle classes with leading _ and -

* update snapshots

* Lint

* Update pr-7865.md

* Update changelog entry

Co-authored-by: Jed Fox <git@twopointzero.us>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-18 15:50:52 +02:00
sosukesuzuki 28cc1908fd Clean changelog_unreleased 2020-11-20 14:01:22 +09:00
fisker Cheung e10aeee5c9 HTML: Fix crash on reading Node.sourceSpan (#9372) 2020-10-13 09:17:57 +08:00
sosukesuzuki 18bcaefc77 Release 2.1.1 2020-08-26 13:20:21 +09:00
fisker Cheungandprettifier[bot] ee57066cb4 HTML: Fix format on style[lang="sass"] (#9051)
Co-authored-by: prettifier[bot] <45367598+prettifier[bot]@users.noreply.github.com>
2020-08-26 00:26:03 +08:00
fisker Cheung 720177ac5c HTML: Fix format on files with frontMatter (#9043) 2020-08-25 19:49:38 +08:00
18b4cabc0c Add 2.1 blog post (#8932)
* Add draft for 2.1 blog post

* Update cspell.json

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update website/blog/2020-08-04-2.1.0.md

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>

* Update changelogs

* Add author to cspell ignore patterns

* Update cspell.json

* Fix original changelog

* Run draft script

* Update

* Fix TypeScript on Highlights

* Fix heading

* Fix author

* Fix changelog for 8410

* Fix syntax highlight

* Move changelog for 7844 to /scss

* Update website/blog/2020-08-21-2.1.0.md

Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>

* Remove changelog_unreleased

* Update filename

* Replace to actual version manually

Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-08-24 20:36:52 +09:00
fisker Cheung 26740d54a5 Recognize known html tags (#8621) 2020-07-14 22:02:32 +08:00
fisker CheungandGeorgii Dolzhykov b01591770a HTML: Don't preserve line breaks around text-only content (#8614)
* Fix inconsistent formatting on Vue interpolation

* Fix text

* Update changelog

* Fix snapshot

* Add an explanation to the changelog

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-07-06 09:18:22 +03:00
dependabot[bot]andfisker 1a4eb6c89a Build(deps): Bump angular-html-parser from 1.7.0 to 1.7.1 (#8643)
* Build(deps): Bump angular-html-parser from 1.7.0 to 1.7.1

Bumps [angular-html-parser](https://github.com/ikatyang/angular-html-parser) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/ikatyang/angular-html-parser/releases)
- [Changelog](https://github.com/ikatyang/angular-html-parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ikatyang/angular-html-parser/compare/v1.7.0...v1.7.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Add test for issue 8626

* Rename pr-8626.md to pr-8643.md

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-07-01 13:30:15 +03:00
fisker Cheung 63a37a2a1d Treat <option> and <optgroup> as block (#8620) 2020-06-24 18:33:13 +08:00
fisker Cheung 44bae94647 Support dynamic languages in front matter (#8381) 2020-05-26 16:18:39 +08:00
fisker Cheung 3606c2e192 Support babel data-type="module" (#8394)
* Support babel `data-type="module"`

* Update changelog
2020-05-25 12:48:31 +03:00
Sosuke Suzuki b44e702679 HTML: Support <script type="text/html"> (#8371)
* Support HTML Script

* Add changelog

* Remove lang support
2020-05-21 20:29:10 +09:00
fisker Cheung 6d49e3b3c1 Revert #7381 (#8359) 2020-05-21 12:25:01 +08:00
Georgii Dolzhykov ddd6001520 Treat <select> and <optgroup> as inline-block for whitespace sensitivity (#8275) 2020-05-11 14:13:40 +03:00
fisker Cheung aa2c003aa2 Support HTML-like Comments(only in html) (#8173) 2020-05-08 21:37:59 +08:00
fisker Cheung f83eb9d5ef Preserve non-ASCII whitespace characters in HTML (#8137)
* Add html whitespace tests

* `U+0005` -> `U+2005`

* Update tests

* Fix whitespace

* Add changelog

* Another space

* Restore `non-breaking` check

* Add space between tests

* Extract all space related codes to utils

* Fix indent detect

* Update changelog

* Another space

* Rename

* Rename

* Rename

* Use `htmlTrimFirstLine` and `htmlTrimEnd`

* Assert with output

* `htmlTrimPreserveIndentation`

* Update changelog

* Fix another space
2020-04-25 16:56:28 +03:00