Skip to content
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

Is it possible to have multiline info box? #134

Open
guoweis-work opened this issue Nov 17, 2021 · 3 comments
Open

Is it possible to have multiline info box? #134

guoweis-work opened this issue Nov 17, 2021 · 3 comments

Comments

@guoweis-work
Copy link
Contributor

I'm using the syntax like this

<!-- Macro: :box:(.+):(.*):(.+):
     Template: ac:box
     Icon: true
     Name: ${1}
     Title: ${2}
     Body: ${3} -->

Is there a way to enable multi-line info box?

@guoweis-work
Copy link
Contributor Author

ideally, i'm hoping the markdown syntax would work inside the infobox, like bolding, or bullet points... etc.

@guoweis-work
Copy link
Contributor Author

I'd love to fix this if you could provide some code pointer.

@kensh17
Copy link

kensh17 commented Sep 21, 2022

This works fine.

<!-- Macro: :box:([^:]+):([^:]*):([^:][\s\S]*?):
     Template: ac:box
     Icon: true
     Name: ${1}
     Title: ${2}
     Body: ${3} -->

:box:info::This is Info.
**bold**:

Bolding worked inside the box, but other markdown syntaxes(like bullet points, and code block...etc) did not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants