# Enable \`Github Flavored Markdown\` option in \`pulldown-cmark\`

**URL:** <https://zola.discourse.group/t/enable-github-flavored-markdown-option-in-pulldown-cmark/2446>\
**Category:** Feature requests\
**Created:** [January 18, 2025, 3:50pm UTC](https://zola.discourse.group/t/enable-github-flavored-markdown-option-in-pulldown-cmark/2446 "2025-01-18T15:50:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![banditopazzo](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/banditopazzo/32/1393_2.png) [@banditopazzo](https://zola.discourse.group/u/banditopazzo)\
**Post date:** [January 18, 2025, 3:50pm UTC](https://zola.discourse.group/t/enable-github-flavored-markdown-option-in-pulldown-cmark/2446/1 "2025-01-18T15:50:59Z")

</div>

I tried using blockquotes with GitHub-style tags and noticed that Zola doesn’t support this feature.

After looking at the `pulldown-cmark` source code, I saw that it already supports this feature, but it needs to be enabled with the `pulldown_cmark::Options::ENABLE_GFM` option in the parser.

From the `pulldown-cmark` docs:

```rust
        /// Misc GitHub Flavored Markdown features not supported in CommonMark.
        /// The following features are currently behind this tag:
        /// - Blockquote tags ([!NOTE], [!TIP], [!IMPORTANT], [!WARNING], [!CAUTION]).
        const ENABLE_GFM = 1 << 11;

```

This enables rendering like the following:

```markdown
> [!NOTE]
> Note blockquote

```

to:

```html
<blockquote class="markdown-alert-note"><p>Note blockquote</p></blockquote>

```

Full specs [here](https://github.com/pulldown-cmark/pulldown-cmark/blob/6d68d7e3ef43e45ac7481302acb434d8c8637fd5/pulldown-cmark/specs/blockquotes_tags.txt).

I tried enabling it in `markdown::markdown::markdown_to_html` with just:

```rust
/// ...
  opts.insert(Options::ENABLE_GFM);

```

and it seems to work correctly.

I was wondering if it would be possible to add this feature to Zola, so I asked here before opening a PR.

---

<div class="post-metadata">

**Author:** ![keats](https://avatars.discourse-cdn.com/v4/letter/k/34f0e0/32.png) [@keats](https://zola.discourse.group/u/keats)\
**Post date:** [January 19, 2025, 8:13pm UTC](https://zola.discourse.group/t/enable-github-flavored-markdown-option-in-pulldown-cmark/2446/2 "2025-01-19T20:13:46Z")

</div>

See [Enable blockquote tags · Issue #2719 · getzola/zola · GitHub](https://github.com/getzola/zola/issues/2719)

For this option in particular I don’t think it’s very compelling to add
