Is admonition available in Franklin.jl?

That’s correct, so the full story is:

  1. In your config.md you can define a note command like so:
\newcommand{\note}[1]{@@note @@title ⚠ Note@@ @@content #1 @@ @@}
  1. You can use it on a page as @Sukera mentioned so \note{You could have ...}
  2. the @@ things indicate div blocks, so the correspondingHTML will be
<div class="note">
  <div class="title">⚠ Note</div>
  <div class="content">You could have...</div>
</div> 

To style this you have to specify the style of .note, .note .title and .note .content so for instance in the docs this is what is used:

.note {
  margin-top: 1.5em;
  width: 95%;
  margin-left:auto;
  margin-right:auto;
  background-color:  aliceblue;
  border-radius: 5px;
  margin-bottom: 1em;
}
.note .content {
  padding: 10px;
  padding-left: 12px;
}
.note .title{
  font-size: 105%;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  padding-left: 7px;
  padding-top: 2px;
  color: white;
  background: cornflowerblue;
}
6 Likes