Commit Graph
48 Commits
Author SHA1 Message Date
fisker Cheung 4e401ff7ea Support formatting angular syntax in markdown (#18519) 2026-01-15 05:58:31 +08:00
Yusril A 0da474ed1d Update json schema store url to latest (#18225) 2025-11-17 02:44:44 +08:00
A1loandfisker Cheung 7930083cff fix(markdown): fix strong emphasis (#18010)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2025-10-12 20:42:57 +08:00
Seiyaandfisker 99cd3d7426 Improve emoji width measurement (#17813)
Co-authored-by: fisker <lionkay@gmail.com>
2025-09-18 20:12:26 +08:00
renovate[bot]andfisker a6bbdad8ca chore(deps): update dependency jest to v30.1.1 (#17819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-08-30 15:36:22 +08:00
fisker Cheungandautofix-ci[bot] 46526b49b6 Add missing blank line around code block (#17675)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-27 10:48:16 +08:00
4bb056842c Fix markdown inserts unexpected newline in lists (#16637)
* 👍 fix Markdown inserts unexpected newline in lists

I fix markdown inserts unexpected newline in lists.

This issue is reported the below link.
https://github.com/prettier/prettier/issues/8004

* 📝 add change log for PR 16637

* 👕 fix lint error for  changelog_unreleased/markdown/16637.md

There is lint error for  changelog_unreleased/markdown/16637.md,
threfore I fix it with 'prettier --write' command.

* 👍 remove template comment for changelog file

* 👍 Remove markdown: from change log title

I remove 'markdown:' from change log title.

* 👍 fix suggested if condition

The suggested condition of the bellow URL is better than current one.
I fix it.

https://github.com/prettier/prettier/pull/16637#discussion_r1919169511

* Update 16637.md

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2025-06-01 02:39:54 +09:00
Florian Diemingerandfisker 91c563e323 Fix adjacent markdown syntax in blockquote (#16596)
Co-authored-by: fisker <lionkay@gmail.com>
2025-03-28 20:00:57 +08:00
fisker Cheung 2b3710d805 Fix embedded format with cursorOffset (#17254) 2025-03-17 11:23:17 +08:00
Seiya a7ddbdb899 Consitent break for comma seperated value (#16907)
* add softline before root paren group

* add changelog

* make conservative
2024-12-21 15:36:36 +09:00
Tatsunori Uchino 88c210e844 Treat U+FF5E as CJK punctuation (#16832) 2024-12-16 16:26:22 +08:00
Tatsunori Uchino ac46a4f16e Treat U+30A0 & U+30FB in Katakana Block as CJK (#16796) 2024-11-26 23:52:53 +08:00
Tatsunori Uchinoandfisker Cheung dc8df0ab80 Tell regexp-util to generate regex compatible with u flag (#16816)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-11-04 19:39:31 +08:00
Tatsunori UchinoandSUZUKI Sosuke 0a4c1e303f Markdown: Don't break a line at the place around Chinese or Japanese characters (#16691)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2024-10-18 15:03:09 +08:00
Tatsunori Uchinoandfisker Cheung a4be6a0fde Markdown: preserve non-ASCII whitespaces at the end of the line and beginning of the next line (#16619)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2024-09-27 21:07:12 +08:00
6168d1e990 Removed excessive spaces after line prefixes for unordered lists in Markdown (#15526)
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2024-09-27 19:58:11 +08:00
Seiya 3fd32a0258 Fix rule of fill violations in CSS (#16570) 2024-09-08 18:03:46 +08:00
Seiya e977d65b19 Fix incorrect wrap in sentence with linkReference (#16546) 2024-08-10 00:27:47 +01:00
Martijn Atema 41f1dffed0 Add newline between markdown footnote definitions (#16063) 2024-05-25 09:15:39 +08:00
Klaus Hott Vidalandfisker 16449ce914 renaming jsfmt.spec.js to format.test.js (#16244)
Co-authored-by: fisker <lionkay@gmail.com>
2024-05-06 10:25:10 +08:00
Seiya 063978a592 Correct invalid fill() in markdown paragraph print (#16158) 2024-04-06 19:25:30 +09:00
Seiyaandfisker d970deed6b Improve wrapping for codeblock in markdown and jsx in mdx (#15993)
Co-authored-by: fisker <lionkay@gmail.com>
2024-03-20 15:41:38 +09:00
Seiya d631cc9907 Add tests of edge cases around liquid (#16078) 2024-02-16 22:22:27 +08:00
Seiya b267831086 Add test cases about code embedding in markdown that relates to #15909 (#15985) 2024-01-26 20:11:21 +08:00
fisker Cheung 6eda34db44 Test: Rename run_spec to runFormatTest (#15943) 2024-01-19 17:20:24 +08:00
fisker Cheung 1dc924f2f2 Add jsonc parser (#15831) 2024-01-02 10:59:34 +08:00
Mark Amery 1e30f66f39 Remove claim, untrue since over 5 years ago, that cursorOffset is incompatible with rangeStart/rangeEnd (#15750) 2023-12-08 16:35:02 +02:00
Arnaud 457e83a725 docs: update the JSON schema location to use https (#15674) 2023-11-18 15:51:29 +09:00
Vivek Joshiandfisker Cheung d4d4b185e0 Fix: Encoding < and > in markdown urls (#15400)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-10-02 18:00:02 +08:00
Tatsunori Uchino 0661f78a26 Don't split lines between Japanese kana & COMBINING KATAKANA-HIRAGANA (SEMI-)VOICED SOUND MARK (#15411)
* Don't split lines between Japanese kana & COMBINING KATAKANA-HIRAGANA (SEMI-)VOICED SOUND MARK

* Add changelog
2023-09-22 22:30:30 +09:00
SUZUKI Sosuke 90fab608ae Do not print trailing commas in arrow function type parameter lists in ts code blocks (#15286)
* Remove trailing comma for `ts` code blocks

* Add changelog

* Support `typescript`

* Update link

* Update tests
2023-08-24 17:02:56 +09:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
fisker Cheung b164d42ea6 Fix 2022-12-15 19:32:24 +08:00
fisker Cheung daeb90f1ca Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/language-css/printer-postcss.js
#	src/language-handlebars/printer-glimmer.js
#	src/language-markdown/clean.js
#	src/language-markdown/printer-markdown.js
#	yarn.lock
2022-12-15 19:16:59 +08:00
Derek Lewisandfisker Cheung 44db370ca6 Don't lowercase Markdown link definition labels (#13155)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-15 14:51:19 +08:00
fisker Cheung f9a71da439 Add CodeQL Analysis workflow (#13851) 2022-11-20 15:35:24 +08:00
Tatsunori Uchino ebb8e13282 Markdown: improve whitespace handling in CJK (#11597) 2022-10-19 11:40:59 +03:00
Alexander Kachkaev 8df3b5ee60 Markdown: Preserve multiple spaces in inline code (#13590) 2022-10-14 10:58:03 +03:00
Georgii Dolzhykov 2c1532b823 Merge remote-tracking branch 'remotes/upstream/main' into next 2022-10-09 22:10:00 +03:00
Anders Kaseorg f38111fec6 markdown: Preserve inline code line breaks if --prose-wrap=preserve (#11373) 2022-10-09 16:53:12 +03:00
fisker Cheung 83400d19b4 Change default value of trailingComma to "all" (#11479) 2022-08-01 11:05:17 +08:00
fisker Cheung 9569ab12aa Merge branch 'main' into next
# Conflicts:
#	.github/renovate.json5
#	.github/workflows/lint.yml
#	package.json
#	src/cli/format.js
#	src/language-js/print/type-annotation.js
#	src/language-js/print/typescript.js
#	src/language-js/utils/index.js
#	tests/format/typescript/enum/jsfmt.spec.js
#	tests/format/vue/with-plugins/jsfmt.spec.js
#	website/yarn.lock
#	yarn.lock
2022-05-28 11:19:03 +08:00
Jed Fox de16657ba0 Remove all references to Gitter (#12885) 2022-05-16 11:08:44 -04:00
Sosuke Suzukiandfisker Cheung fa3b95c2e1 Remove lodash (#12628)
* Replace `groupBy`

* Replace `partition`

* Replace `pick`

* Move `partition`

* Replace `uniqBy`

* Replace `fromPairs`

* Remove usage from website

* Reuse `partition`

* Remove from package.json

* Fix

* Use `ignore.default`

* Add `resolveConfig` to `FileInfoOptions`

* Explicit tuple types

* Make `cache` optional

* Fix cosmiconfig type

* Use `@ts-expect-error` for private property access

* Add type annotation for validate

* Fix type errors for `OptionInfo`

* Add `@ts-expect-error`

* Fix type of `normalizeOptions`

* Fix `OptionInfo` type

* Add `@ts-expect-error` for `option-normalizer`

* Avoid type error

* Fix typo

* Add types for lodash fns

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-04-10 15:26:07 +09:00
fisker CheungandSosuke Suzuki 6bd81c23b6 Migrate format test to ES Module (#11902)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-01-04 17:00:25 +08:00
Sosuke Suzuki 7c6d0e462b Keep trailing commas for type parameters in embedded TSX (#11685)
* Keep trailing comma for embedded tsx

* Fix

* Add changelog

* Use dummy filepath
2021-10-19 16:15:05 +09:00
fisker Cheung 894f841fbd Style: Enforce extensions (#11227) 2021-07-21 09:10:34 +08:00
fisker Cheung ece93681f1 Restructure test files (#10415) 2021-04-25 20:01:56 +08:00