Files
AFFiNE-Mirror/packages/frontend/core/tsconfig.json
德布劳外 · 贾贵 b53b4884cf refactor(core): align markdown conversion logic (#13254)
## Refactor

Align the Markdown conversion logic across all business modules:
1. frontend/backend apply: doc to markdown
2. insert/import markdown: use `markdownAdapter.toDoc`

> CLOSE AI-328 AI-379 AI-380

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Documentation**
* Clarified instructions and provided an explicit example for correct
list item formatting in the markdown editing tool.

* **Bug Fixes**
* Improved markdown parsing for lists, ensuring correct indentation and
handling of trailing newlines.
* Cleaned up markdown snapshot test files by removing redundant blank
lines for better readability.

* **Refactor**
* Updated markdown conversion logic to use a new parsing approach for
improved reliability and maintainability.
* Enhanced markdown generation method for document snapshots with
improved error handling.
* Refined markdown-to-snapshot conversion with more robust document
handling and snapshot extraction.

* **Chores**
* Added a new workspace dependency for enhanced markdown parsing
capabilities.
* Updated project references and workspace dependencies to include the
new markdown parsing package.

* **Tests**
* Temporarily disabled two markdown-related tests due to parse errors in
test mode.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-07-21 10:35:13 +00:00

29 lines
955 B
JSON

{
"extends": "../../../tsconfig.web.json",
"compilerOptions": {
"rootDir": "./src",
"outDir": "./dist",
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
},
"include": ["./src", "src/**/*.json"],
"references": [
{ "path": "../component" },
{ "path": "../../common/debug" },
{ "path": "../electron-api" },
{ "path": "../../common/env" },
{ "path": "../../common/error" },
{ "path": "../../common/graphql" },
{ "path": "../i18n" },
{ "path": "../../common/nbstore" },
{ "path": "../../common/reader" },
{ "path": "../track" },
{ "path": "../../../blocksuite/affine/all" },
{ "path": "../../../blocksuite/affine/components" },
{ "path": "../../../blocksuite/affine/shared" },
{ "path": "../../../blocksuite/framework/global" },
{ "path": "../../../blocksuite/framework/std" },
{ "path": "../../common/infra" },
{ "path": "../../../blocksuite/affine/ext-loader" }
]
}