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

Rendering code blocks #56

Closed
vinayraghu opened this issue Jun 3, 2014 · 3 comments
Closed

Rendering code blocks #56

vinayraghu opened this issue Jun 3, 2014 · 3 comments

Comments

@vinayraghu
Copy link

First of all, thanks for this awesome plugin. It's everything I wanted. I have a question and maybe they are already solved but I'll ask anyway

  1. How do you render code blocks AND have them show up as code?
    In my SCSS, I have the ocde to create badges like below. Currently, only the code is showing up. However, I'd like to also render this html so that the badges show up with different variations. Is this possible by editing the template?
    <span class="badge.badge-primary">
    <span class="badge.badge-secondary">
    <span class="badge.badge-alert">
    <span class="badge.badge-info">
    <span class="badge.badge-success">
    <span class="badge.badge-warning">
@winstromming
Copy link
Owner

You can fence code blocks (Github-style) and they will render as both result and code example. For structure information: #12 (comment)

@vinayraghu
Copy link
Author

Worked like a charm :)

@winstromming
Copy link
Owner

Happy to hear :D

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

No branches or pull requests

2 participants