PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
589 stars 25 forks source link

[Bug report] 无法正确显示callout的颜色 #295

Open iLern opened 6 months ago

iLern commented 6 months ago

问题描述

我根据文档修改了模板。然而,在重新更新笔记后(通过Force update by over writting),发现annotation并没有显示相应的颜色。虽然可以看到生成的文档内容已经改变,但似乎没有读取到zt-colored.eta。我想知道是否还需要进行额外设置。

环境信息

Obsidian v1.5.3 ZotLit v1.1.4

附图

image image

模板文件

// zt-colored.eta

<mark style="
<%- if (it.color) { _%> color: <%= it.color %>; <%_ } -%>
<%- if (it.bgColor) { _%> background-color: <%= it.bgColor %>; <%_ } -%>
"><%= it.content %></mark>
// zt-annot.eta

[!<%= it.colorName %>] Page <%= it.pageLabel %>

<%= it.imgEmbed %><%= it.text %>
<% if (it.comment) { %>
---
<%= it.comment %>
<% } %>