Insert arbitrary html tags (with attributes) in hexo content.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig add editorconfig Oct 2, 2016
README.md Better meta Oct 4, 2016
index.js Better meta Oct 4, 2016
package.json Better meta Oct 4, 2016

README.md

hexo-tag-htmltag

A Hexo tag for inserting arbitrary html tags (with attributes) into posts.

Installation

npm install hexo-tag-htmltag --save

Use

Basic

{% htmlTag span class="highlight text" %} Something important {% endhtmlTag %}
// -> <span class="highlight text">Something important</span>

Multiple Attributes

{% htmlTag button type="button" data-submit data-action="add" aria-controls="calc"%} Add 10 {% endhtmlTag %}
// -> <button type="button" data-submit data-action="add" aria-controls="calc">Add 10</button>

License

MIT