You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TiddlyWiki supports adding a citation to multi-line block quotes with the cite element, which Obsidian does not directly support. Currently tw2md eats any citation info that might exist in a tiddler.
How to resolve this is definitely up for discussion since it's not a standard Obsidian feature. Flagging for future users and providing my personal solution below. 🙂
Process the whole array without skipping the last element, and add a check for exactly <<< to remove any closing lines that don't include citation information.
for (Stringl : block.subList(1, block.size() - 1)) {
for (Stringl : block.subList(1, block.size())) {
finalArrayList<String> list = newArrayList<>();
list.add(l);
if (!renderTextBlock(t, list).equals("<<<")) {
sb.append(("> " + renderTextBlock(t, list)).trim()).append(NL);
}
}
In the renderTextFragment function, add a line to handle the <<< citation syntax. I wrap the citation text directly in the html element, which displays properly within the block quote element in Obsidian: on its own line with some default cite element CSS formatting.
TiddlyWiki supports adding a citation to multi-line block quotes with the cite element, which Obsidian does not directly support. Currently tw2md eats any citation info that might exist in a tiddler.
How to resolve this is definitely up for discussion since it's not a standard Obsidian feature. Flagging for future users and providing my personal solution below. 🙂
Process the whole array without skipping the last element, and add a check for exactly
<<<
to remove any closing lines that don't include citation information.tw2md/src/main/java/ca/codepit/tw2md/Main.java
Line 647 in f352808
In the
renderTextFragment
function, add a line to handle the<<< citation
syntax. I wrap the citation text directly in the html element, which displays properly within the block quote element in Obsidian: on its own line with some default cite element CSS formatting.tw2md/src/main/java/ca/codepit/tw2md/Main.java
Line 523 in f352808
The text was updated successfully, but these errors were encountered: