Skip to content

An auxiliary tool for posts-writing in hexo-based blogs.

License

Notifications You must be signed in to change notification settings

phantom0174/latex-protector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

About the repo

Introduction

This is an auxiliary tool to facilitate the katex-rendering process of posts in hexo-based blogs. For further information, see this post and this post.

Usage

from latex_protector import Protector


target_folder_root = [
    "./source/_posts/",
    "./source/about/"
]

protector = Protector(target_folder_root)

protector.protect()

Custom Syntax

Furthermore, you can enclose a section with two <!--lp:skip-some--> syntax to skip partial protection, or add a <!--lp:skip-all--> syntax at the beginning of the file to skip the entire protection of the md file.

Examples:

<!--lp:skip-some-->

$$
\text{This section will not be protected.}\\
A_i + B_j = C_k
$$

<!--lp:skip-some-->
<!--lp:skip-all-->

This file will not be protected.

...
...
...

About

An auxiliary tool for posts-writing in hexo-based blogs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages