chore: remove unused syntax

- Removed the wikilink extension from markdown services in test and API service.
- Deleted the DefaultLink and WikiLink components, simplifying link handling.
- Updated ConditionalComponent to remove wikilink checks.
- Adjusted MemoContent to exclude wikilink handling in markdown rendering.
- Refined markdown styles for compact rendering, enhancing readability.
- Added a Markdown Styling Guide to document the new compact styling approach.
This commit is contained in:
Claude
2025-10-27 08:31:57 +08:00
parent 7eec424274
commit 596b894ca0
22 changed files with 370 additions and 764 deletions
+4 -3
View File
@@ -11,10 +11,11 @@ import { visit } from "unist-util-visit";
* #work → <span class="tag" data-tag="work">#work</span>
* #2024_plans → <span class="tag" data-tag="2024_plans">#2024_plans</span>
* #work-notes → <span class="tag" data-tag="work-notes">#work-notes</span>
* #tag1/subtag/subtag2 → <span class="tag" data-tag="tag1/subtag/subtag2">#tag1/subtag/subtag2</span>
*
* Rules:
* - Tag must start with # followed by alphanumeric, underscore, or hyphen
* - Tag ends at whitespace, punctuation (except - and _), or end of line
* - Tag must start with # followed by alphanumeric, underscore, hyphen, or forward slash
* - Tag ends at whitespace, punctuation (except -, _, /), or end of line
* - Tags at start of line after ## are headings, not tags
*/
@@ -22,7 +23,7 @@ import { visit } from "unist-util-visit";
* Check if character is valid for tag content
*/
function isTagChar(char: string): boolean {
return /[a-zA-Z0-9_-]/.test(char);
return /[a-zA-Z0-9_\-/]/.test(char);
}
/**