-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obsidian-style foldable callout syntax (e.g. "![Info]- Title") ( Duplicate of #1060) #1070
base: main
Are you sure you want to change the base?
Conversation
Agh, small error I fixed only locally
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
4 Ignored Deployments
|
@marcchehab is attempting to deploy a commit to the Datopian Team on Vercel. A member of the Team first needs to authorize it. |
Hello @marcchehab! Thank you so much for waiting so patiently for our review! 🙏 🌸 I'll make sure we merge your code ASAP! As for the missing arrows: they are just not positioned correctly. Since the pseudo-elements are "absolutely" positioned, they need some "relative" ancestor. And so they show up after adding However, as you can see, they are not perfectly centered vertically. This can be fixed with CSS though to achieve this: See my suggestions to your CSS styles. 🏆 Would be nice to have a simple test for this feature in Overall, great work, and I can't wait to have it shipped! 🚀 |
Applying @olayway's suggestions from code review Co-authored-by: Ola Rubaj <[email protected]>
@olayway thanks for your kind corrections 🥳 I'll immediately port those to my main branch 😬 I'll have a look if I can write a testfile, I'll have to figure out how to use mocha with ts. Btw: Once we merge this, I can ship another PR to correct a bug in callouts (if something in the title inserts a new element, e.g. a bold text, it breaks the title) |
I can't get mocha to run, so I can't write tests... (Among other things I tried to run mocha in packages/remark-callouts, but no success so far, even though its clearly using your .mocharc.yaml) |
@marcchehab Thank you for giving it a go! Try running this in the root of the repo: pnpm i
pnpm nx test remark-callouts |
catching up
@marcchehab is this good to merge in your opinion? did you managed to make the changes? |
This adds Obsidian-style foldable callout syntax, as described here: https://help.obsidian.md/Editing+and+formatting/Callouts#Foldable+callouts
Please note that I tested this in my customized Flowershow, so maybe the CSS I added for the padding isn't what you need!
Kind regards from Zurich!
Marc
As promised: A new PR from a branch, so I can mess with my main branch.