hcr
hexo-compat-report
npm i hexo-compat-report
hcr

hexo-compat-report

Renders an MDN compatibility table on your hexo page.

by Tim Daubenschütz

0.1.0 (see all)License:MITTypeScript:Not FoundCategories:Vanilla JavaScript Blogging
npm i hexo-compat-report
Readme

hexo-compat-table

Renders an MDN compatibility table on your hexo-generated page.

A demo of hexo-compat-table

Use case

When writing about front end web development, it's always nice being able to refer to some up-to-date data about browser-compatibility of a certain feature. The MDN Web Docs team has done a great job compiling all data into a single git repository. On MDN itself, this data is then displayed in a compat-report-table.

As I really like these tables and wanted to use them in one of my blog posts, I've simply decided to cut out the functionality from the MDN platform and make it available to all of my fellow hexo bloggers.

Installation

$ npm i --save hexo-compat-report

and to include a table into your blog post, use the following syntax:

{% compat api.AudioWorklet %}

For the correct path, please refer to the MDN repository.

Contributing

Any help or feedback is welcome. Check the issues for problems. I'll try to merge PRs optimistically.

Changelog

0.1.0

  • Upgrade mdn-browser-compat-data to @mdn namespace

0.0.2

  • Include installation guidance into README.md

0.0.1

  • Release initial version with basic functionality

License

MIT

Downloads/wk

10

GitHub Stars

6

LAST COMMIT

2mos ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

4

OPEN PRs

3
VersionTagPublished
0.1.0
latest
1yr ago
No tutorials found
Add a tutorial