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

Tabbed Code Blocks #1

Open
georgeedwards opened this issue Aug 7, 2016 · 1 comment
Open

Tabbed Code Blocks #1

georgeedwards opened this issue Aug 7, 2016 · 1 comment

Comments

@georgeedwards
Copy link
Owner

Multiple adjacent code blocks should be automatically converted into tabbed code blocks.

The titles of the code should be the tab names.

I want to use JQuery and MaterializeCSS for the animation and styling of these.

@georgeedwards
Copy link
Owner Author

Have implimented a new codeblock tag which should ideally be used:

Syntax:

{% m_codeblock %}
<!-- tab [lang] -->
     content
 <!-- endtab -->
{% endm_codeblock %}

E.g:

{% m_codeblock %}
<!-- tab js -->
 var test = 'test';
<!-- endtab -->
<!-- tab css -->
 .btn {
        color: red;
 }
<!-- endtab -->
{% endm_codeblock %}

My Hexo Converter project has been adapted to support this.

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

1 participant