feat(content-type): add content_type field, markdown auto-conversion, and API doc updates

- Add content_type column to ul_post via migration
- Install league/commonmark for markdown->HTML conversion
- Add Post model accessors/setters for content_type and content
- Update API Articles controller save/update with content_type support
- Update API docs with content_type parameter and markdown example

Closes content-type-support plan
This commit is contained in:
augushong
2026-04-29 20:46:44 +08:00
parent 0e8944bc7f
commit 6f332467df
5 changed files with 104 additions and 2 deletions

View File

@@ -33,7 +33,8 @@
"topthink/think-filesystem": "^2.0",
"mibe/feedwriter": "^1.1",
"matomo/device-detector": "^6.1",
"intervention/image": "^2.7"
"intervention/image": "^2.7",
"league/commonmark": "^2.8"
},
"require-dev": {
"symfony/var-dumper": "^4.2"