Skip to content

Feature/add markdown plugins - #512

Merged
webstackdev merged 30 commits into
mainfrom
feature/add-markdown-plugins
Dec 17, 2025
Merged

webstackdev merged 30 commits into
mainfrom
feature/add-markdown-plugins

Conversation

@webstackdev

@webstackdev webstackdev commented Dec 17, 2025

Copy link
Copy Markdown
Owner

Description

Add plugins to Markdown processing stack

Type of Change

  • 🐛 Bug fix (bugfix/*)
  • 🔥 Hot fix (hotfix/*)
  • ✨ New feature (feature/*)
  • 🏗️ Infrastructure (infrastructure/*)
  • � Maintenance (maintenance/*)
  • �📝 Content update (content/*)
  • 📚 Documentation
  • 🎨 Style/UI change
  • ♻️ Code refactoring

…est files, rename test-utils file to processors
…ent syntax so compatible with GFM tables in same Unified stack
…ntax to allow right-justifying or centering both text and block elements
…==my marked text=== to wrap the 'my marked text' in <mark> elements
…==my marked text=== to wrap the 'my marked text' in <mark> elements
…ute]] syntax instead of {...} syntax that conflicts with Astro's embedded JS code feature in Astro templates
… blocks in order, instead of reversing them on build
@github-actions

github-actions Bot commented Dec 17, 2025

Copy link
Copy Markdown

Dependency Review

The following issues were found:

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
  • ⚠️ 2 packages with OpenSSF Scorecard issues.

View full job summary

const links = Array.from(container.querySelectorAll('a'))
const hrefs = links.map(link => link.getAttribute('href') ?? '')

expect(hrefs.some(href => /^https?:\/\/www\.example\.com/.test(href))).toBe(true)

Check failure

Code scanning / CodeQL

Missing regular expression anchor High test

This hostname pattern may match any domain name, as it is missing a '$' or '/' at the end.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

} else {
child.value = nextValue
}
remaining = ''

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The value assigned to remaining here is unused.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

} else {
child.value = nextValue
}
remaining = ''

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The value assigned to remaining here is unused.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions

github-actions Bot commented Dec 17, 2025

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 71.74% 5590 / 7791
🔵 Statements 70.13% 5870 / 8370
🔵 Functions 71.03% 1089 / 1533
🔵 Branches 59.71% 3009 / 5039
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/content.config.ts 0% 0% 0% 0% 23-275
src/components/Social/Highlighter/client/index.ts 84% 60.78% 80.55% 85.1% 45, 47-52, 45, 48-50, 73, 76, 94, 169, 180, 208-209, 218-228, 242, 326-329, 341, 360
src/components/Toc/index.astro 100% 100% 100% 100%
src/layouts/MarkdownLayout.astro 0% 0% 0% 0% 1-153
src/lib/config/markdown.ts 100% 100% 100% 100%
src/lib/markdown/helpers/index.ts 100% 100% 100% 100%
src/lib/markdown/helpers/markdownLoader.tsx 66.66% 100% 66.66% 66.66% 79-83
src/lib/markdown/helpers/processors.ts 98.07% 91.66% 100% 98% 133
src/lib/markdown/plugins/rehype-footnotes-title/index.ts 84% 62.96% 100% 100% 5, 13, 19, 40
src/lib/markdown/plugins/rehype-inline-code-color-swatch/index.ts 78.2% 69.56% 92.3% 91.66% 40, 50-52, 63, 64, 65, 72, 74, 75, 85, 149, 154-155, 159
src/lib/markdown/plugins/rehype-tailwind/index.ts 60.52% 46.04% 85.71% 60% 55-73, 140-149, 155-193, 201-215, 238-241, 249-255, 260-263, 268-272, 277-286, 291-296, 301-312, 317-328, 333-341, 366
src/lib/markdown/plugins/remark-align/index.ts 77.58% 74.58% 97.22% 83.64% 74, 80, 91, 100, 131, 145, 148, 153, 158, 165, 168, 198, 199, 210-214, 218, 224-229, 239, 249, 250, 251, 257-259, 262, 267, 287, 293, 296, 303-315, 324, 330, 333, 340-354, 359, 360, 384, 390, 395, 408, 418
src/lib/markdown/plugins/remark-attributes/index.ts 84.49% 78.78% 91.66% 85.55% 141-142, 168, 174-186, 208, 212-215, 231, 239, 245, 259, 307, 323, 345, 355, 383, 394, 411, 443, 447, 459
src/lib/markdown/plugins/remark-attributes/types.ts 100% 100% 100% 100%
src/lib/markdown/plugins/remark-custom-blocks/index.ts 83.56% 64.61% 87.5% 95% 31, 34, 50, 58, 70-72, 81, 92, 95, 102, 103, 106
src/lib/markdown/plugins/remark-mark-plus/index.ts 86% 73.33% 100% 92.68% 16, 17, 51-53, 77, 78
src/lib/markdown/plugins/remark-replacements/index.ts 84% 78.57% 83.33% 86.95% 100, 125, 131
src/lib/markdown/plugins/remark-smartypants/index.ts 93.6% 80.89% 100% 95.45% 34, 36-37, 83, 149-151, 157-159, 262
src/pages/index.astro 0% 100% 0% 0% 1-11
src/pages/testing/markdown/index.astro 0% 0% 0% 0% 1-13
Generated in workflow #80 for commit f2a1399 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Dec 17, 2025

Copy link
Copy Markdown

Preview deployment ready

Field Value
Branch feature/add-markdown-plugins
Commit f2a1399
Preview Open preview

Triggered by @webstackdev

@webstackdev
webstackdev merged commit f462680 into main Dec 17, 2025
11 checks passed
@webstackdev
webstackdev deleted the feature/add-markdown-plugins branch December 27, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants