Giter Club home page Giter Club logo

note-to-mp's Introduction

简介

这是一个Obsidian插件,针对微信公众号编缉器进行了优化,通过本插件复制笔记可以把笔记样式同步到公众号编缉器,轻轻松松搞定文章格式,一劳永逸,而且支持代码高亮、代码行数显示等。针对微信公众号不能放链接也专门处理了,直接展示链接地址。

安装

Release页面下载最新版本,将插件解压到Obsidian仓库的.obsidian/plugins/目录下。

打开Obsidian的设置界面,点击第三方插件,在已安装插件中刷新一下,然后启用本插件Note To MP

使用

点击Obsidian左侧工具栏中的图标 或者按Ctrl+P打开命令,搜索复制到公众号

检查样式无误后,点击复制按钮,然后到公众号粘贴即可。

新增样式

在插件目录下的styles.json文件中新增一条样式配置,如下所示

[
    {  
        已有样式定义 ...
    },
    
    {
        "name": "NewStyle", 
        "className": "new-style",
        "desc": "关于样式的描述",
        "author": "sunbooshi"
    }
]

其中各字段含义如下:

  • name 是样式的名称,在预览页面用于展示。
  • className 是CSS类名,不能包含空格。
  • desc 样式的介绍
  • author 样式作者

styles.css追加定义样式,所有样式都应该写在styles.jsonclassName定义的选择器下,以上面新增的样式举例,CSS应按如下所示编写:

.new-style strong {
  font-weight: 700
}
.new-style a {
  color: #428bca;
  text-decoration: none;
  background: 0 0
}
.new-style p {
  margin: 10px 0;
  line-height: 1.7
}

note-to-mp's People

Contributors

sunbooshi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.