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
-- Pandoc Lua-filter for Obsidian Callouts | |
-- Original Source: https://forum.obsidian.md/t/rendering-callouts-similarly-in-pandoc/40020/ | |
-- Notes: | |
-- Original snippet modified to output Hugo {{< admonition >}} shortcodes with collapse. | |
-- Make sure to have a blank line before and after the `> [!note]` line of the callout block. | |
-- The filter works recursively so if you want callouts within callouts, make sure to leave a blank line | |
-- before and after the `> [!note] Your title here` line of each callout. | |
-- Usage: |
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
function markArchivedAsRead() { | |
var threads = GmailApp.search('label:unread -label:{inbox, Unsnoozed}'); | |
for (var i=0; i<threads.length; i++) | |
{ | |
var messages = threads[i].getMessages(); | |
var markUnread = 1; | |
for (var j=0; j<messages.length; j++) | |
{ | |
if (messages[j].isInInbox()) | |
markUnread = 0; |