Thanks to visit codestin.com
Credit goes to github.com

Skip to content

corentinleberre/docsify-replace-pattern

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docsify-replace-pattern

Docsify-mermaid-zoom is a docsify plugin which allows to replace text pattern in the headings of docsify website. Useful if you want to style sections of your documentation without adding html to your markdown.

How to use

<!-- Docsify-replace-pattern -->
<script src="//unpkg.com/docsify-replace-pattern/dist/index.js"></script>

Configurations :

  • Choose the type of headings you want to style (you can pass multiples headings)
  • Define the patterns you want to replace. The surround property allow style to be
<script>
    window.$docsify = {
        ...,
        replacePatterns: {
        rootSelector: "h2",
        childSelector: "span",
        patterns: [
          { initial: "Bonjour", replace: "Salut", surround: false, style: "color: blue;" }
        ]
      }
    }
  </script>

Demo

A demo is available here

About

Small Docsify plugin which allows to replace text pattern in your docsify website

Topics

Resources

License

Stars

Watchers

Forks