玩命加载中 . . .

主页 归档 分类 标签

hexo添加markdown文章自动缩进功能

Why I write this?

Because I has found how to add auto indent in post;But now it is not prefect,and it has a break change,So I will study deeply the hexo how to work.

Now how to do it。

I use hexo-render-marked to write post ,and I don’t have easy way to auto tap in post.
And I find someOne maybe has something Solutions,but it will make me hard to change Input Method.
So I find way on the brower and add Style.The effect is good,but I use filter to hanle it ,it is diffcult for me to use reg and handle string.
I will study more and hanler it,make it to plugin,Year!

Thanks

Every reader!

This is my npm module

auto indent plugin

Now has some quesiton

I auto indent only 2 em,If I have time,I will add config to control its indent value.

I only publish it to npmjs,so and now I find a way in github packages to publish all.

I don’t know all country ‘s indent format,so If I have time I will study all different and create a strong plugin.

---------------- The End and I hope sunshines on the outside. ----------------
  • 版权声明: 本博客所有文章除特别声明外,著作权归作者所有。转载请注明出处!
  • Copyrights © 2022 Ma
  • 访问人数: | 浏览次数:

      请我喝杯咖啡吧~

      支付宝
      微信