Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: render hooks for headings, code blocks, blockquotes and tables

Aperta
#35 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Read the link/image hooks work in #34 and inspect the Markdig rendering and fixture patterns in Fanstatic.Test/ and .TestSites/. Add hooks for headings, code blocks, blockquotes (including GitHub alerts), and tables while preserving output when hooks are absent. Add a fixture for each hook and run ./build.sh test; meet the stated coverage and CRAP thresholds.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

c:templates p:medium size:M t:feature

Part of the Phase 3 epic (#33).

Current State

After the link/image hooks, the other common customization points still use Markdig's fixed HTML.

Tasks:
  • _markup/render-heading.html (heading.Level, heading.Text, heading.Anchor)
  • _markup/render-codeblock.html and _markup/render-codeblock-<lang>.html (code.Lang, code.Inner,
    code.Attributes), language-specific first, e.g. render-codeblock-mermaid.html
  • _markup/render-blockquote.html with GitHub alert support (> [!NOTE] → blockquote.AlertType)
  • _markup/render-table.html
  • Reuse the infrastructure from the link/image hooks issue

Tests live in Fanstatic.Test/ (xUnit + NSubstitute); fixture sites in .TestSites/. Run ./build.sh test; new/changed methods need CRAP ≤ 15 and ≥ 75 % line coverage.

Acceptance Criteria:
  • Each hook covered by a fixture; no output change without hooks.
Related:
  • #33 (Phase 3 epic, parent)
  • Depends on #34
Lingua principale
C#
Stelle
1
Fork
0
Merge medio
13h 50m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MASS4ORG/Fanstatic

Tutte le issue di MASS4ORG/Fanstatic

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.