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

Markdown parser and settings appear to be outdated locally

Aperta
#699 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
jekyll, ruby

Direzione di ricerca

Inizia con la riproduzione di index.md e confronta l’output locale con l’output atteso di GitHub Pages. Esamina il modo in cui la gem configura il parser Markdown e le impostazioni di Jekyll, usando la soluzione alternativa CommonMarkGhPages come riferimento. Il lavoro è completato quando il rendering locale corrisponde all’HTML mostrato, incluso il Markdown all’interno dell’HTML e i puntini di sospensione tipografici.

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

Descrizione

Before submitting an issue, please be sure to
This issue affects
  • The site generated by GitHub Pages
  • Building sites locally

The GitHub Pages Gem is intended to help users replicate the GitHub Pages build environment locally. If your issue affects both the hosted version and the version previewed locally, you may be better suited reporting seeking support in other forums.

What did you do (e.g., steps to reproduce)

index.md

<section>

# Heading

More...

</section>
What did you expect to happen?

Jekyll should use the same markdown parser and settings locally as GitHub Pages.

<section>
  <h1 id="heading">Heading</h1>
  <p>More…</p>
</section>
What happened instead?

Jekyll seems to incorrectly use its own default Kramdown parser instead of GFM CommonMark, and as a result cannot handle Markdown in HTML or smart ellipses.

<section>

# Heading

More...

</section>
Additional information

As a workaround, I guessed at what GitHub's Jekyll config was and ended up using this, which works the same with this example both locally and on GitHub Pages:

markdown: CommonMarkGhPages
commonmark:
  options: ["SMART"]

However, I think the gem should replicate this functionality automatically to keep local testing consistent with GitHub. I'm also not sure if I'm missing other options that may differ in both environments.

Lingua principale
Ruby
Stelle
1.9k
Fork
361
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 github/pages-gem

Tutte le issue di github/pages-gem

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.