update at 2025-09-25 22:35:01

This commit is contained in:
douboer
2025-09-25 22:35:01 +08:00
parent a60cdd593c
commit c9ce811ce9
11 changed files with 1192 additions and 21 deletions

View File

@@ -45,7 +45,6 @@ src可能使用link
![[2025ZK12-2.jpg]]
4.
参考以下代码,渲染[fig content/],|| content,||r content,||g content,||b content等标签
`\[fig([^>]*?)/\]` `<span style="font-style: italic; font-size: 14px; background-color: #f5f5f5; padding: 2px;">$1</span>`
@@ -82,4 +81,58 @@ content3
8. 在h1前使用||h1 来增加修饰编号010203……
9. 支持选中多篇文章,邮件"发布到公众号"。问题obsidian只能连续选择是不能跳着选。
改变思路通过database按tags筛选文件筛选出文件执行命令。
增加命令 - 批量发布
```
在obsidian中通过database筛选出文章送到发布公众号:
views:
- type: table
name: 表格
filters:
and:
- file.tags.contains("篆刻")
order:
- file.name
实现:
1. 回车键执行“应用筛选”
2. 支持鼠标框选文件
修正问题:当滚动条下拉后,无法框选
鼠标框选选中control+鼠标框选取消选中
```
10. 默认选择“原创”“允许留言”。
11. gallery短代码增加是否使用dir中的所有图片的开关。mppickall=1选取dir中的所有图片mppickall=0按“选取图片数”配置选取图片数量。
{{<gallery dir="/img/guanzhan/1" figcaption="毕业展" mppickall=1/>}}{{<load-photoswipe>}}
{{<gallery dir="/img/guanzhan/1"/> mppickall=1}}{{<load-photoswipe>}}
(hugo中发布会忽略mppickall信息)
12. 图片旋转问题❓在mac预览和obsidian中查看都正常的图片。上传公众号被左旋90度❓note-to-mp中没有旋转逻辑。
exiftool -Orientation -n image.jpg
Orientation : 6
• 1 → 正常方向
• 3 → 倒过来
• 6 → 右转 90°
• 8 → 左转 90°
Orientation : 1 -- 没有问题。
Orientation : 6 -- 图片左旋90度需右选90才正常。
需求:
- 在mac预览和obsidian中查看都正常的图片。上传公众号被左旋90度。通过exiftool -Orientation -n image.jpg查看显示Orientation : 6。
在插件中需要判断Orientation的值除了Orientation为1不需要旋转其他情况依据该值执行旋转操作
1 → 不需要旋转
3 → 旋转180度
6 → 右转 90°
8 → 左转 90°
没有解决❗️
- 在mac预览和obsidian中查看都正常的图片。上传公众号被左旋90度。通过exiftool -Orientation -n image.ext查看显示Orientation : 6。
为了规避这个问题图片不做旋转处理直接转为png上传公众号。解决。因为PNG不带orientation信息。