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

Use Callouts in Markdown Editor #469

Closed
Shackelford-Arden opened this issue Aug 13, 2017 · 3 comments
Closed

Use Callouts in Markdown Editor #469

Shackelford-Arden opened this issue Aug 13, 2017 · 3 comments

Comments

@Shackelford-Arden
Copy link

So, I'm a big fan of the callouts that I can use in the WYSIWYG editor. Though, for simplicity in one of the wiki's I'm using, I've switched over to the Markdown Editor.

My only problem is I can't figure out how to use the Callouts (Info, Success, etc) while in the Markdown editor. Is there a way to do this or should I use the WYSIWYG editor if I really want them?

@ssddanbrown
Copy link
Member

Hi again @Shackelford-Arden,

Since callouts are not a standard part of markdown there's no special syntax for them but you can add HTML into the markdown editor. Therefore you can add the HTML for callouts within the markdown editor without any issue. Here's an example with all callout types:

# My Markdown Page

<p class="callout info">A success message</p>
<p class="callout success">A success message</p>
<p class="callout warning">A success message</p>
<p class="callout danger">A success message</p>

Normal markdown text

Produces:

image


In the last bugfix release, v0.17.4, I actually expanded the shortcuts for the markdown editor quite a lot including a callout shortcut Ctrl+9 (Or Cmd+9 on mac) which would insert the info callout syntax for you but in writing out this message I realised this is currently a little broken (#470).

@Shackelford-Arden
Copy link
Author

Hot dang. This does indeed work just fine for me. You can close this... Thanks! I'll look over the documentation.

@ssddanbrown
Copy link
Member

Awesome, Glad to hear the above works for you 👍 . Will close.

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

No branches or pull requests

2 participants