Skip to content

Conversation

@3w36zj6
Copy link
Member

@3w36zj6 3w36zj6 commented Oct 26, 2025

This pull request adds Typst-style markup decorations to the header.

Although it's outside the scope of this PR, applying this change will cause the existing Reference pages to look a bit odd, so a separate fix will be needed for that.

@3w36zj6 3w36zj6 requested a review from Copilot October 26, 2025 22:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces Typst-style heading decorations to markup content, where heading levels (h2-h6) are visually prefixed with equals signs (=, ==, ===, etc.) in gray. Additionally, font-family declarations are reformatted to single-line format.

  • Adds CSS pseudo-elements (::before) to h2-h6 headings with Typst-style equals sign decorations
  • Reformats multi-line font-family declarations to single-line format
  • Applies consistent gray coloring (text-gray-400) to heading decorations

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…and unique content

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@3w36zj6 3w36zj6 force-pushed the feature/add-heading-decorations branch from 786721c to 53f4549 Compare October 26, 2025 22:13
@3w36zj6 3w36zj6 marked this pull request as draft October 27, 2025 01:24
@YDX-2147483647
Copy link
Member

YDX-2147483647 commented Nov 1, 2025

By the way, regarding the headings, I am planning to introduce explicit styles in #26. What do you think about this approach?
#28 (comment)

I do think it is strange, but it can become a characteristic of typst-docs-web, and doesn't look bad in your screenshot.
Therefore, I'm okay with this change.

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.

3 participants