Enhance markdown typography configuration (#2590)

This commit is contained in:
Paweł Kuna
2026-01-11 17:24:23 +01:00
committed by GitHub
parent eac69eb35b
commit 82e3c39585
3 changed files with 48 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
---
description: Git Branch Naming Rules
globs:
alwaysApply: true
---
## Branch naming
- Use lowercase branch names.
- Use a type prefix and a short description in kebab-case.
- Format: `<type>/<short-description>` or `<type>/<issue-id>-<short-description>`
- Use `gh-123` as the issue id format (avoid `#` in branch names).
### Allowed types
- `feat` - new features
- `fix` - bug fixes
- `docs` - documentation changes
- `chore` - maintenance / tooling
- `refactor` - code refactoring (no behavior change)
- `test` - tests only
- `build` - build system changes
- `ci` - CI changes
- `perf` - performance improvements
- `style` - formatting / lint-only changes
- `revert` - reverting prior changes
### Examples
- `feat/gh-123-add-stepper-component`
- `fix/markdown-table-overflow`
- `docs/gh-45-update-contributing`
- `chore/update-pnpm-lock`
### Notes
- Branch off `dev` by default (unless maintainers request otherwise).
- Avoid spaces, uppercase letters, and special characters other than `/` and `-`.

View File

@@ -495,6 +495,11 @@ $line-heights: (
h4: $h4-line-height,
h5: $h5-line-height,
h6: $h6-line-height,
base: $line-height-base,
sm: $line-height-sm,
lg: $line-height-lg,
xl: $line-height-xl,
) !default;
$display-font-sizes: (

View File

@@ -1,8 +1,12 @@
$markdown-font-size: var(--#{$prefix}font-size-h3) !default;
$markdown-line-height: var(--#{$prefix}line-height-lg) !default;
/**
Markdown
*/
.markdown {
line-height: $line-height-xl;
line-height: $markdown-line-height;
font-size: $markdown-font-size;
> :first-child {
margin-top: 0;