1.0.7 • Published 3 years ago

@corgicoding/theme v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

corgicoding-theme-css

Render css based on the markdown format modified by typo.css.


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

  1. Install package
    npm install @corgicoding/theme
  1. Import css file to the page.
    /* On-demand import */
    import "@corgicoding/theme/dist/normalize.css";
    import "@corgicoding/theme/dist/github.css";

    import "@corgicoding/theme";
  1. Add the c-html-render class to the dom element to be rendered.

HTML

  1. DownLoad this Repository.
  2. Unzip
  3. Add the c-html-render class to the dom element to be rendered.
  4. 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" />