• Obsidian配置


    插件

    1:Annotator

    pdf批注插件,使用方法:新建一个markdown文件,在文件的头部必须时开头添加以下内容:

    ---
    annotation-target: xxx.pdf
    ---
    
    • 1
    • 2
    • 3

    2:Hidden Folder

    用正则表达式隐藏文件夹的,我的设置隐藏以.assets结尾的文件夹:

    \.assets$
    
    • 1

    3:Colored Tags

    使不同tag按照不同颜色显示,且继承关系相同的tag会继承上一层的颜色:
    在这里插入图片描述

    4:Obsidian Git

    需要先配置好本地的git并且init push后才能使用,其设置如下:
    在这里插入图片描述

    5:Style Settings

    配合obsidian默认的ccs使用更改字体颜色的。该插件readme文档提供了默认的ccs文件。

    6:Templater(可选)

    可以根据模板文件生成新的文件(Alt+N),也可以插入模板(Alt+E)到当前位置(光标处)所有模板设置放在template.assets文件夹下。
    或直接使用软件自带的核心插件“模板”,并设置模板所在文件夹为:template.assets

    CSS

    使状态栏平铺显示、调整markdown显示使其文字两端对齐、增加预览窗口大小、markdown图片默认居中显示、增加全屏状态下的文字宽度即调整页边距、更改引用模块的字体颜色使其变成灰色以区分正文文本(也提供了更改引用模块背景颜色的css)。

    /* Full status bar */
    .status-bar {
      --status-bar-position: static;  /* Full it. */
      --status-bar-radius: 0 0 0 0;  /* Make the upper left corner rounded corner disappear. */
    }
    
    
    /* Adjusting markdown text so that it is aligned at both ends */
    .cm-s-obsidian,
    .markdown-preview-view {
      text-align: justify;
      hyphens: auto;
    }
    
    
    /* Increase the size of the link preview window */
    .popover.hover-popover {
      transform: scale(0.8); /* makes the content smaller */
      max-height: 800px; /* was 300 */
      min-height: 100px;
      width: 500px; /* was 400 */
    }
    .popover.hover-popover .markdown-embed {
      height: 800px;
    }
    
    
    /* Rendering a centered image */
    img {
      display: block !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }
    .markdown-source-view.mod-cm6 .cm-content > * {
      margin: auto !important;
    }
    
    
    /* Bigger the text with in every mode */
    body{
      --file-line-width: 65rem;  /* default is 45rem */
    }
    /* .markdown-preview-view.is-readable-line-width .markdown-preview-sizer {
      max-width: 95%;
    }
    .markdown-source-view.mod-cm6.is-readable-line-width .cm-sizer {
      max-width: 95%;
    } */
    
    
    /* Change blockquote background color & text color. */
    /* .markdown-rendered blockquote {
      --blockquote-background-color: #e5e1f7;
    }
    .markdown-preview-view blockquote {
      color: #666666;
    } */
    
    
    /* Just change blockquote text color. */
    .markdown-preview-view blockquote {
      color: #888888;
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63

    字体风格调整

    1:调整字体

    设置-->外观-->字体中更改界面字体正文字体微软雅黑

    2:调整字体颜色

    下载插件Style Settings和对应的Obsidian默认主题的所有可修改文件的css,这个css可以在插件的GitHub上找到。
    随后更改字体颜色为#333333即可。

  • 相关阅读:
    阶乘数码洛谷
    Golang:gocron定时任务管理系统的安装与使用
    Vue3学习(十六)- 左侧显示分类菜单
    Elasticsearch安装和下载教程
    RocketMQ 之 IoT 消息解析:物联网需要什么样的消息技术?
    【LeetCode每日一题】——118.杨辉三角
    16位、32位、64位系统字节长度
    sql优化最新干货---mysql存储过程、索引和锁
    快速回复软件,请查收!
    css笔记
  • 原文地址:https://blog.csdn.net/m0_46161993/article/details/132854394