Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !31802

Improve callout shortcode.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged XhmikosR requested to merge main-xmr-docs-callout-shortcode into main Oct 01, 2020
  • Overview 2
  • Commits 2
  • Pipelines 0
  • Changes 35

Remove the markdownify call, and instead rely on Hugo's proper syntax; {{% callout %}} when we want to the content to be rendered.

This allows for stuff like:

{{% callout info %}}
##### I'm an info callout!
.foo {
  color: #fff;
}

{{< example >}}
<div class="alert alert-warning alert-dismissible fade show" role="alert">
  <strong>Holy guacamole!</strong> You should check in on some of those fields below.
  <button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
</div>
{{< /example >}}
{{% /callout %}}

Preview: https://deploy-preview-31802--twbs-bootstrap.netlify.app/

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main-xmr-docs-callout-shortcode