# Option to apply GitHub flavored markdown to process md files

**URL:** <https://discourse.gohugo.io/t/option-to-apply-github-flavored-markdown-to-process-md-files/10923>\
**Category:** support\
**Created:** [March 7, 2018, 7:44pm UTC](https://discourse.gohugo.io/t/option-to-apply-github-flavored-markdown-to-process-md-files/10923 "2018-03-07T19:44:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsrakesh4](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jsrakesh4](https://discourse.gohugo.io/u/jsrakesh4)\
**Post date:** [March 7, 2018, 7:44pm UTC](https://discourse.gohugo.io/t/option-to-apply-github-flavored-markdown-to-process-md-files/10923/1 "2018-03-07T19:44:46Z")

</div>

I would like to know if there is a way to apply GitHub flavored markdown when building in Hugo with docdock theme. Thanks in advance

My website has bunch of anchors to different sections in a page. After building with Hugo and docdock theme they are not working.

Example:

```auto
1. [heading_1](#heading1)
2. [CPU%Too_High](#cputoohigh)
3. [Third Heading](#third-heading)

```

After building the site the anchors are created as below.

```auto
#heading-1
#cpu-too-high
#third-heading
```

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [March 7, 2018, 7:53pm UTC](https://discourse.gohugo.io/t/option-to-apply-github-flavored-markdown-to-process-md-files/10923/2 "2018-03-07T19:53:35Z")

</div>

You can specify the anchors as you like…

```auto
## heading_1 {#heading1}
asdf

## CPU%Too_High {#cputoohigh}
asdf

## Third Heading {#third-heading}
asdf

```

You cannot apply the GFM style anchor generation as Hugo uses Blackfriday (another flavor of md processing like GFM)… but you can specify/override the anchors to your wish as shown above.

* * *

[Related](https://discourse.gohugo.io/t/creating-anchors-in-hugo-pages-solved/9552)

---

<div class="post-metadata">

**Author:** ![jsrakesh4](https://avatars.discourse-cdn.com/v4/letter/j/6a8cbe/32.png) [@jsrakesh4](https://discourse.gohugo.io/u/jsrakesh4)\
**Post date:** [March 7, 2018, 8:04pm UTC](https://discourse.gohugo.io/t/option-to-apply-github-flavored-markdown-to-process-md-files/10923/3 "2018-03-07T20:04:33Z")

</div>

Got it… Thanks @kaushalmodi

---

<div class="post-metadata">

**Author:** ![kaushalmodi](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/kaushalmodi/32/2567_2.png) [@kaushalmodi](https://discourse.gohugo.io/u/kaushalmodi)\
**Post date:** [March 7, 2018, 8:27pm UTC](https://discourse.gohugo.io/t/option-to-apply-github-flavored-markdown-to-process-md-files/10923/4 "2018-03-07T20:27:02Z")

</div>

You’re welcome.

I’ve now documented this as well:

> **[Links and Cross References](https://gohugo.io/content-management/cross-references/#manually-specifying-anchors)**
>
> Shortcodes for creating links to documents.
