Skip to content

Instantly share code, notes, and snippets.

@iamkissg
Last active May 19, 2022 00:57
Show Gist options
  • Save iamkissg/f168bf627b36cd9d09b8183c85981c49 to your computer and use it in GitHub Desktop.
Save iamkissg/f168bf627b36cd9d09b8183c85981c49 to your computer and use it in GitHub Desktop.
简悦 Markdown 增强导出配置 #simpread #markdown
<%
let colors = [ '#B4D9FB', '#ffeb3b', '#a2e9f2', '#a1e0ff', '#a8ea68', '#ffb7da' ],
color = colors[ annote.color ];
-%>
> [!<%= (annote.note? "note":"abstract")%>]+ <mark style="background-color: <%= color %>">Highlight</mark> [🧷](<{{an_int_uri}}>)[🌐](<{{an_ext_uri}}>) {{an_tags}}
{{{html_format|>|{{an_html}}}}}
<% if (annote.note) { -%>
{{> - 📝|an_note}}
<% } -%>
^sran-{{an_id}}
---
UID: {{timestamp}}
title: "srAnnote@{{title}}"
---
# {{title}}
> [!md] **Metadata**
> **原文**:: [{{title}}]({{url}})
> **日期**:: [[{{create|yyyy-mm-dd_ddd}}]]
> **标签**:: #simpread {{tags}} #{{date_format|now|yyyy-MM-dd}} #reading_highlights
<% if ( unread.refs ) { -%>
> **外部引用**:: {{refs}}
<% } -%>
<% if ( unread.backlinks ) { -%>
> **反向链接**:: {{backlinks}}
<% } -%>
<% if ( unread.note ) { -%>
> [!note] **摘要**
> <%- unread.note %>
<% } -%>
<% if ( unread.desc ) { -%>
> [!summary] **描述**
> <%- unread.desc %>
<% } -%>
## Annotations
<% if ( unread.annotations.length > 0 ) { %>
{{annotations}}
<% } %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment