0.1.6 ā€¢ Published 2 years ago

eleventy-plugin-code-block-demo v0.1.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

This 11ty plugin helps demonstrate HTML code blocks. It post-processes parsed templates and replaces pre > code.language-html HTML elements with rich demonstration features while rendering the actual HTML code.

  • A live preview of HTML code blocks (e.g. `html)
  • Hides the original code block within a collapsed expansion panel
  • TODO copy to clipboard

*code-block-demo is in its diapers. Feel free to feedback, contribute and influence its future.

šŸ  Homepage

āœØ Demo

Install

npm install eleventy-plugin-code-block-demo

Add this plugin to your Eleventy config file (usually .eleventy.js):

const codeBlockDemo = require('eleventy-plugin-code-block-demo');

module.exports = function(eleventyConfig) {
  eleventyConfig.addPlugin(codeBlockDemo);
};

The plugin will automatically render code blocks with the language-html class as HTML.

Author

šŸ‘¤ Yinon Oved

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2021 Yinon Oved. This project is MIT licensed.

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago