Closed marcchehab closed 3 months ago
Latest commit: 710da32225843b8367bc7b776c31549a11ed84c1
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
portaljs-storybook | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jan 22, 2024 4:03pm |
@marcchehab is attempting to deploy a commit to the Datopian Team on Vercel.
A member of the Team first needs to authorize it.
@marcchehab The PR is great! and it works, but a few adjustments are needed:
Callout
component to the remark-callouts
package, specifically in src\lib\Callout.tsx
.src\index.ts
with a statement like export Callout from "./lib/Callout.tsx";
.To update the site
folder, follow these steps:
remark-callouts
package will be updated in npm.@portaljs/remark-callouts
and use it in the site.Lovely thanks @mohamedsalem401 ! I'll follow your lead!
@mohamedsalem401 Now this PR solely adds to packages/remark-callouts
. I hope my way of reverting MDXPage.tsx
in site
manually is ok.
I was running into issues because I'm using jsx so I added "jsx": jsx-react
to the compiler options in packages/remark-callouts
. works fine on my end.
Any update on this?
Today working on it I noticed one general limitation (not this PR, the callout code generally): If the title includes other elements, e.g. bold text, inline code, etc., it breaks the title. The issue is the assumption that the first child contains the title.
I'm working on a fix, but better in a new PR.
Update: Got it fixed.
Dear @olayway ! Great to get to know you, so far I only read your code 🙂 I think it must be that the color isn't visible in light mode, right? If so, I now added: border-color: var(--tw-prose-body);
. Let's see how it is on your end. Here on Windows I checked it on Brave/Chrome and Firefox.
I erroneously submitted this PR from my main branch, so now my fork is blocked. I'll close the PR and maybe resubmit from a branch if you're interested.
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