# Example of Attributes Render Hook in v0.82.0

**URL:** https://discourse.gohugo.io/t/example-of-attributes-render-hook-in-v0-82-0/32179
**Category:** support
**Created:** [April 5, 2021, 7:16pm UTC](https://discourse.gohugo.io/t/example-of-attributes-render-hook-in-v0-82-0/32179 "2021-04-05T19:16:47Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![andreseduardop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/andreseduardop/32/25434_2.png) [@andreseduardop](https://discourse.gohugo.io/u/andreseduardop)
#### Post date: [April 6, 2021, 7:05am UTC](https://discourse.gohugo.io/t/example-of-attributes-render-hook-in-v0-82-0/32179/3 "2021-04-06T07:05:05Z")

</div>

Perhaps it is possible -in markdown file- to wrap the link with a shortcode `{{<link-with-id id = "link-id">}} link {{</ link-with-id>}}`

And then in the shortcode file replace the content of the `<a>` tag using Hugo’s replace function.  
[https://gohugo.io/functions/replace/](https://gohugo.io/functions/replace/)  
Similar to what is suggested here:

> [@How to Customise Tables](https://discourse.gohugo.io/t/how-to-customise-tables/15661/22):
>
> Hi, I would like to enhance answer by @zwbetz in order to fix wrong Goldmark td align attribute thanks to ReplaceRE function. My table shortcut is like this and now my table will render like this [awesome Bootstrap theme](https://djibe.github.io/material/docs/4.4/material/data-tables/) . {{ $htmlTable := .Inner | markdownify }} {{ $class := .Get 0 }} {{ $old := "\<table\>" }} {{ $new := printf "\<table class=\"%s\"\>" $class }} {{ $htmlTable := replace $htmlTable $old $new }} {{ $htmlTable := replaceRE "align=\"([a-z]+)\"" "style=\"text-align: $1\"" $htmlTable}} \<…

---

_[View the full topic](https://discourse.gohugo.io/t/example-of-attributes-render-hook-in-v0-82-0/32179)._
