BLOG-45 Post content page #67

Merged
squid merged 9 commits from BLOG-45_post_content_page into main 2025-07-24 22:20:58 +08:00
Owner

Description

  • Implement the content page
    • Parse markdown formant content to html by markdown-it
    • Use sanitize-html to prevent from XSS attack
    • Style the html with tailwindcss-typography
  • Fix the issue when backend parse the password to url
  • Fix and make the post info list from backend always sorted by id

Package Changes

Rust

percent-encoding = "2.3.1"

Node

{
  "@types/markdown-it": "^14.1.2",
  "@types/sanitize-html": "^2.16.0",
  "markdown-it": "^14.1.0",
  "sanitize-html": "^2.17.0"
}

Screenshots

Desktop Mobile
image.png beta.squidspirit.com_post(iPhone 12 Pro) (1).png

Reference

Resolves #45

Checklist

  • A milestone is set
  • The related issuse has been linked to this branch
### Description - Implement the content page - Parse markdown formant content to html by `markdown-it` - Use `sanitize-html` to prevent from XSS attack - Style the html with `tailwindcss-typography` - Fix the issue when backend parse the password to url - Fix and make the post info list from backend always sorted by id ### Package Changes ### Rust ```toml percent-encoding = "2.3.1" ``` ### Node ```json { "@types/markdown-it": "^14.1.2", "@types/sanitize-html": "^2.16.0", "markdown-it": "^14.1.0", "sanitize-html": "^2.17.0" } ``` ### Screenshots |Desktop|Mobile| |-|-| |![image.png](/attachments/0ec5718a-f804-432f-8e4b-e9dc22c080d2)|![beta.squidspirit.com_post(iPhone 12 Pro) (1).png](/attachments/b30d1b96-d4a4-4b2b-b9bd-90fd2592ab52)| ### Reference Resolves #45 ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch
squid added this to the 0.2 milestone 2025-07-24 22:19:40 +08:00
squid added 9 commits 2025-07-24 22:19:40 +08:00
BLOG-45 fix: trivial style
Some checks failed
Frontend CI / build (push) Failing after 52s
901d367d9d
BLOG-45 fix: fixed post info order from backend
Some checks failed
Frontend CI / build (push) Failing after 50s
25e9e470a6
BLOG-45 feat: improve efficiency with ssr
Some checks failed
Frontend CI / build (push) Failing after 46s
a73c3c3354
BLOG-45 feat: add markdown-it and types for improved post content rendering
Some checks failed
Frontend CI / build (push) Failing after 50s
f07460d95c
BLOG-45 fix: percent encode the database password
All checks were successful
Frontend CI / build (push) Successful in 1m6s
PR Title Check / pr-title-check (pull_request) Successful in 16s
1b9eb3feee
squid changed title from BLOG-45_post_content_page to BLOG-45 Post content page 2025-07-24 22:20:17 +08:00
squid merged commit 3cb69f6e7c into main 2025-07-24 22:20:58 +08:00
Sign in to join this conversation.
No description provided.