-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #856 from PandaNocturne/24.09.08_panda
Excalidraw Script Install Market:轻松管理和获取 Excalidraw 脚本
- Loading branch information
Showing
11 changed files
with
696 additions
and
120 deletions.
There are no files selected for viewing
112 changes: 73 additions & 39 deletions
112
...Obsidian使用技巧/熊猫别熬夜/熊猫别熬夜Excalidraw脚本汇总.md → ...n/Obsidian使用技巧/熊猫别熬夜/自定义Excalidraw脚本汇总.md
Large diffs are not rendered by default.
Oops, something went wrong.
100 changes: 100 additions & 0 deletions
100
10-Obsidian/Obsidian外观/CSS 片段/Obsidian样式-核心大纲outline标题显示自动编号.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
--- | ||
uid: 20240910165133 | ||
title: Obsidian 样式 - 核心大纲 outline 标题显示自动编号 | ||
tags: [css, outline] | ||
description: " Outline 进行优化的CSS,自动对标题进行编号" | ||
author: 熊猫别熬夜 | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240910173714 | ||
--- | ||
|
||
# Obsidian 样式 - 核心大纲 outline 标题显示自动编号 | ||
|
||
![24.09.10_Obsidian样式-核心大纲outline标题显示自动编号.md](https://cdn.pkmer.cn/images/202409101652696.png!pkmer) | ||
|
||
对 Obsidian 的核心插件 Outline 进行优化,自动对标题进行编号。请注意,该编号不会实际修改文档中的标题编号。 | ||
|
||
> 该代码改编于 [obsidian-visually-numbered-headings:窗口计数失效](https://github.com/platon-ivanov/obsidian-visually-numbered-headings/issues/16) | ||
## 样式一:从一级标题开始计数 | ||
|
||
```css | ||
/* https://github.com/platon-ivanov/obsidian-visually-numbered-headings/issues/16 */ | ||
.workspace-leaf-content[data-type="outline"] { | ||
counter-reset: rootCounter; | ||
|
||
.tree-item .tree-item-self .tree-item-inner::before { | ||
content: counters(rootCounter, ".") ". "; | ||
counter-increment: rootCounter; | ||
} | ||
|
||
/* container of the ohter headings. */ | ||
/* NOTE: It is not .outline anymore. So we need a new counter */ | ||
.tree-item-children { | ||
counter-reset: innerCounter; | ||
} | ||
|
||
.tree-item-children .tree-item .tree-item-self .tree-item-inner::before { | ||
content: counters(rootCounter, ".") "."counters(innerCounter, ".") ". "; | ||
counter-increment: innerCounter; | ||
} | ||
} | ||
|
||
``` | ||
|
||
## 样式二:从二级标题开始计数 | ||
|
||
```css | ||
/*! Visually Numbered Headings */ | ||
/* https://github.com/platon-ivanov/obsidian-visually-numbered-headings/issues/16 */ | ||
|
||
/* container of first layer headings. */ | ||
.workspace-leaf-content[data-type="outline"] { | ||
counter-reset: rootCounter; | ||
tree-item .tree-item-self .tree-item-inner::before { | ||
/* content: counters(rootCounter, ".") " "; */ | ||
counter-increment: rootCounter; | ||
} | ||
|
||
/* container of the ohter headings. */ | ||
/* NOTE: It is not .outline anymore. So we need a new counter */ | ||
.tree-item-children { | ||
counter-reset: innerCounter 0; | ||
} | ||
|
||
.tree-item-children .tree-item .tree-item-self .tree-item-inner::before { | ||
/* content: counters(rootCounter, ".") "." counters(innerCounter, ".") " "; */ | ||
content: counters(innerCounter, ".") " "; | ||
counter-increment: innerCounter; | ||
} | ||
} | ||
``` | ||
|
||
## 拓展样式:文件大纲显示编号 | ||
|
||
![24.09.10_Obsidian样式-核心大纲outline标题显示自动编号.md](https://cdn.pkmer.cn/images/202409101737437.png!pkmer) | ||
|
||
```css | ||
/* https://github.com/platon-ivanov/obsidian-visually-numbered-headings/issues/16 */ | ||
.workspace-leaf-content[data-type="file-explorer"] { | ||
counter-reset: rootCounter; | ||
|
||
.tree-item .tree-item-self .tree-item-inner::before { | ||
content: counters(rootCounter, ".") ". "; | ||
counter-increment: rootCounter; | ||
} | ||
|
||
/* container of the ohter headings. */ | ||
/* NOTE: It is not .outline anymore. So we need a new counter */ | ||
.tree-item-children { | ||
counter-reset: innerCounter; | ||
} | ||
|
||
.tree-item-children .tree-item .tree-item-self .tree-item-inner::before { | ||
content: counters(rootCounter, ".") "."counters(innerCounter, ".") ". "; | ||
counter-increment: innerCounter; | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
10-Obsidian/Obsidian社区插件/Excalidraw/Excalidraw LateχEditor:用于画板的 Lateχ编辑器.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
uid: 20240908193817 | ||
title: Excalidraw LateχEditor:用于画板的 Lateχ编辑器 | ||
tags: [Excalidraw脚本, latex] | ||
description: Excalidraw LateχEditor:用于画板的 Lateχ编辑器 | ||
author: 熊猫别熬夜 | ||
type: other | ||
draft: false | ||
editable: false | ||
modified: 20240908193853 | ||
--- | ||
|
||
# Excalidraw LateχEditor:用于画板的 Lateχ编辑器 | ||
|
||
![24.09.08_自定义Excalidraw脚本-LateχEditor用于画板的新Lateχ编辑器.md](https://cdn.pkmer.cn/images/202409081937363.png!pkmer) | ||
|
||
## 功能 | ||
|
||
1. 可视化编辑 Lateχ公式:直接运行脚本使用。 | ||
2. 可二次编辑 Lateχ公式:选中一个 latex 公式后,在运行脚本使用。 | ||
|
||
## 安装链接 | ||
|
||
```` | ||
```excalidraw-script-install | ||
https://raw.githubusercontent.com/PandaNocturne/ExcalidrawScripts/master/PandaScripts/LatexEditor.md | ||
``` | ||
```` |
Oops, something went wrong.