Skip to content

Commit

Permalink
docs: fix admonition regular expression (#2702)
Browse files Browse the repository at this point in the history
From #2699, Co-authored by @monooleate

Added `margin-bottom` to better visually align icon with title.
  • Loading branch information
mackieburgess authored Oct 10, 2024
1 parent 8752dba commit dd55558
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 2 deletions.
79 changes: 78 additions & 1 deletion www/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions www/static/markdown.css
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@
margin-right: 0.25rem;
width: 1.2em;
height: 1.2em;
margin-bottom: 0.25rem;
}
.markdown-body blockquote.warn {
border-color: #ff9100;
Expand Down
2 changes: 1 addition & 1 deletion www/utils/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const slugger = new GitHubSlugger();

Marked.marked.use(mangle());

const ADMISSION_REG = /^<p>\[(info|warn|tip)\]:\s/;
const ADMISSION_REG = /^\[(info|warn|tip)\]:\s/;

export interface MarkdownHeading {
id: string;
Expand Down

0 comments on commit dd55558

Please sign in to comment.