1.0.7 • Published 3 years ago
@corgicoding/theme v1.0.7
corgicoding-theme-css
Render css based on the markdown format modified by typo.css.
- Author: Charles Chan
- Organization: Corgi Coding
- Github: https://github.com/Corgi-Coding
version 1.0.4: fix li pre
style
version 1.0.4: fix li pre
style
version 1.0.5: add feat global style
version 1.0.6: remove global style | fix some error
Demo
Here is an html file for your reference link
How to use
There are two ways to use it
NPM
- Install package
npm install @corgicoding/theme
- Import css file to the page.
/* On-demand import */
import "@corgicoding/theme/dist/normalize.css";
import "@corgicoding/theme/dist/github.css";
import "@corgicoding/theme";
- Add the
c-html-render
class to the dom element to be rendered.
HTML
- DownLoad this Repository.
- Unzip
- Add the
c-html-render
class to the dom element to be rendered. - Add the following code to the page.
<!-- Prevent compatibility issues caused by different browsers -->
<link rel="stylesheet" href="./dist/normalize.css" />
<!-- corgicoding.theme -->
<link rel="stylesheet" href="./dist/corgicoding.theme.min.css" />
<!-- github style code render -->
<link rel="stylesheet" href="./dist/github.css" />
<div class="c-html-render" />