mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-26 21:05:55 +03:00
[PR #727] [MERGED] Add admonitions library and markdown pipeline adjustments #868
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#868
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/BoostIO/BoostNote-App/pull/727
Author: @Komediruzecki
Created: 12/17/2020
Status: ✅ Merged
Merged: 1/2/2021
Merged by: @Rokt33r
Base:
master← Head:feature/add-support-for-admonitions📝 Commits (4)
c7030aeAdd admonitions library and markdown pipeline adjustmentsd0a511eRemove custom admonitions1359e5aRemove unnecessary changesabe49e9Use default tag option📊 Changes
4 files changed (+39 additions, -4 deletions)
View changed files
📝
package-lock.json(+24 -0)📝
package.json(+1 -0)📝
src/components/atoms/MarkdownPreviewer.tsx(+13 -4)📝
typings/unified.d.ts(+1 -0)📄 Description
Add admonitions library and markdown pipeline adjustments (#474)
The basic admonitions for boostnote. The icons are currently emoji since svg elements are sanitized by rehype-sanitize. We could add exceptions for svg elements but I think we are already going for emoji only things so this should be fine?
New Syntax Example
Markdown code:
TestAdmonitions.txt
Markdown Preview:

OLD Syntax
For markdown:
admonitions-test-md.txt
Classic admonitions (dark/white background):
Boostnote custom admonitions (dark/white background):
Todo:
Test:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.