--- title: InnerDeindent description: Returns the content between opening and closing shortcode tags, with indentation removed, applicable when the shortcode call includes a closing tag. categories: [] keywords: [] action: related: - methods/shortcode/Inner returnType: template.HTML signatures: [SHORTCODE.InnerDeindent] --- Similar to the [`Inner`] method, `InnerDeindent` returns the content between opening and closing shortcode tags. However, with `InnerDeindent`, indentation before the content is removed. This allows us to effectively bypass the rules governing [indentation] as provided in the [CommonMark] specification. Consider this markdown, an unordered list with a small gallery of thumbnail images within each list item: {{< code file=content/about.md lang=md >}} - Gallery one {{}} ![kitten a](thumbnails/a.jpg) ![kitten b](thumbnails/b.jpg) {{}} - Gallery two {{}} ![kitten c](thumbnails/c.jpg) ![kitten d](thumbnails/d.jpg) {{}} {{< /code >}} In the example above, notice that the content between the opening and closing shortcode tags is indented by four spaces. Per the CommonMark specification, this is treated as an indented code block. With this shortcode, calling `Inner` instead of `InnerDeindent`: {{< code file=layouts/shortcodes/gallery.html >}} {{< /code >}} Hugo renders the markdown to: ```html ``` Although technically correct per the CommonMark specification, this is not what we want. If we remove the indentation using the `InnerDeindent` method: {{< code file=layouts/shortcodes/gallery.html >}} {{< /code >}} Hugo renders the markdown to: ```html ``` [commonmark]: https://commonmark.org/ [indentation]: https://spec.commonmark.org/0.30/#indented-code-blocks [`Inner`]: /methods/shortcode/inner