Skip to content

Commit

Permalink
css: removed table row border; conent: add wikilink gist
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltomasz committed Aug 19, 2023
1 parent 450b08d commit bb65318
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 8 deletions.
8 changes: 4 additions & 4 deletions assets/scss/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ table {
text-align: left;
width: 100%;
}
table tr {
background: white;
border-bottom: 1px solid
}
// table tr {
// background: white;
// border-bottom: 1px solid
// }
table th, table td {
padding: 10px 20px;
}
Expand Down
9 changes: 9 additions & 0 deletions content/posts/Awesome Zotero Plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ Recently, the devs shared a public beta of Zotero 7. otero 7. Most of the update

What's exciting is the native support for Apple Silicon desktop devices and an [even better reader, with EPUB support and web annotation](https://forums.zotero.org/discussion/106716/available-for-beta-testing-updated-reader-with-epub-snapshot-support-and-new-annotation-types). An Android app is also in development.

## Markdown translators

https://github.com/erazlogo/zotero-markdown-translators

<!--Markdow export
zotero://open-pdf/library/items/9WYPFUSR?page=9
https://forums.zotero.org/discussion/90858/pdf-reader-and-zotero-open-pdf-links
-->
# Plugins I'm Using in Zotero 7

As an avid Zotero user, I've tested my fair share of plugins to optimize my workflow. While Zotero is great on its own, plugin take it to the next level for managing citations and references. Unfortunately with the changes to Zotero app, many plugins doesnt support beta yet. Below those I am using and are ported (or will be ported soon):
Expand Down
12 changes: 12 additions & 0 deletions content/posts/Papers Reviews 1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

---
title: "Papers Reviews #1"
date: 2023-08-17
description:
draft: true
tags:
---

# Papers Reviews 1

# Some interesting paper
19 changes: 16 additions & 3 deletions content/posts/using obsidian callouts with quarto.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Using Git/Obsidian Callouts in Quarto Markdown"
title: "Using Wikilinks and Git/Obsidian Callouts in Quarto Markdown"
date: "2023-05-31"
url: "/2023/obsidian-quarto-callouts"
draft: false
Expand Down Expand Up @@ -32,7 +32,7 @@ To use callouts in Quarto markdown (`qmd`) files, you need to use Pandoc's div s

```md
::: {.callout-note}
This is a note callout
This is a note callout
:::
```

Expand Down Expand Up @@ -91,7 +91,7 @@ By default Obsidian only styles `note` and `warning` callouts. To match Quarto,
}
```

Now the callouts look the same in Obsidian and compiled PDFs!
Now the callouts look (almost) the same in Obsidian and compiled PDFs!

Below is the Obsidian markdown that can be used to generate the basic 5 types of callouts that map nicely to Quarto types:

Expand Down Expand Up @@ -127,6 +127,19 @@ Remember that in order for callouts to work you need to leave a empty line start

Since Quarto 1.3 callouts are represented as a [custom AST node](In Quarto 1.3, callouts are represented as a custom AST node.). (A version of Lua filter that generated native Pandoc Divs)[https://forum.obsidian.md/t/rendering-callouts-similarly-in-pandoc/40020/6] will not work with latest Quarto.

## Bonus: Wikilinks

Obsidian also supports wikilinks, which are a great way to link between notes. They are not supported in Quarto, but you can use a Lua filter to convert them to regular text in the rendered file. Unfortunately, this version doesn't fully support aliases in wikilinks. Also be careful, as this gist is not thouroughly tested, but works in all simple cases I tested it.

{{< gist danieltomasz bde887dcc775bd47acc0ddf993e3ec2b >}}

Add it to `_quarto.yml` or the yaml header of your document:

``` yml
filters:
- filters/wikilinks-filter.lua
```

## More Obsidian + Quarto Tips

I use plugins to preview Quarto files in Obsidian:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*{line-height:1.6em;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica,helvetica neue,ubuntu,roboto,noto,segoe ui,arial,sans-serif;padding:2rem;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}main{max-width:70ch;padding:2ch;margin:auto}rig header,footer{margin-top:4rem;margin-bottom:4rem}h1:first-child{margin:0}img{display:block;max-width:100%}.meta{color:#777}.meta span a{color:#777;display:inline;text-decoration:none}.divider{display:inline-block;flex:1;border-top:1px solid #ddd;margin:0 10px}.lista .meta{align-items:center;display:flex;padding-bottom:.85em}a,a:visited{color:initial}.list{list-style-type:none;padding-left:0;margin:0}.list li{margin-bottom:.5rem}time{color:#777;font-variant-numeric:tabular-nums}blockquote{border-left:2px solid #777;padding:.5rem 1rem;margin:2rem 0}table{border-collapse:collapse;text-align:left;width:100%}table tr{background:#fff;border-bottom:1px solid}table th,table td{padding:10px 20px}.posts ul,header ul,footer ul{list-style:none}.posts,header ul,footer ul{padding:0}.posts li{align-items:center;display:flex;justify-content:space-between;margin-bottom:.7rem}.posts li a,.posts li div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.posts li time{padding-left:1rem;white-space:nowrap;font-variant-numeric:tabular-nums}code,pre{color:#353535;font-family:San Francisco Mono,Monaco,consolas,lucida console,dejavu sans mono,bitstream vera sans mono,monospace;font-size:normal;border:1px solid #353535;font-size:small}code{padding:.1rem;border:none}pre{padding:.5rem;overflow-x:auto}pre code{border:none}header li,footer li{display:inline;text-transform:uppercase}header a,footer a{text-decoration:none}header ul,footer ul{justify-content:space-between;display:flex}[aria-current=page]{text-decoration:line-through}header,section,footer{padding:1rem 0}.lista li{list-style-type:none}.lista ul{display:flex;list-style-type:none}.nav{padding-top:-3em}ul{list-style-type:square}ul,ol{padding-left:1.2rem}header li,footer li{display:inline;text-transform:uppercase}header a,footer a{text-decoration:none}header ul,footer ul{justify-content:space-between;display:flex}[aria-current=page]{text-decoration:line-through}blockquote{border-left:5px solid #353535;padding-left:1rem}.posts ul,header ul,footer ul{list-style:none}.posts,header ul,footer ul{padding:0}.posts footer{padding-top:-10em}.posts li{align-items:center;display:flex;justify-content:space-between}.posts li a,.posts li div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.posts li time{padding-left:1rem;white-space:nowrap;font-variant-numeric:tabular-nums}
*{line-height:1.6em;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica,helvetica neue,ubuntu,roboto,noto,segoe ui,arial,sans-serif;padding:2rem;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}main{max-width:70ch;padding:2ch;margin:auto}rig header,footer{margin-top:4rem;margin-bottom:4rem}h1:first-child{margin:0}img{display:block;max-width:100%}.meta{color:#777}.meta span a{color:#777;display:inline;text-decoration:none}.divider{display:inline-block;flex:1;border-top:1px solid #ddd;margin:0 10px}.lista .meta{align-items:center;display:flex;padding-bottom:.85em}a,a:visited{color:initial}.list{list-style-type:none;padding-left:0;margin:0}.list li{margin-bottom:.5rem}time{color:#777;font-variant-numeric:tabular-nums}blockquote{border-left:2px solid #777;padding:.5rem 1rem;margin:2rem 0}table{border-collapse:collapse;text-align:left;width:100%}table th,table td{padding:10px 20px}.posts ul,header ul,footer ul{list-style:none}.posts,header ul,footer ul{padding:0}.posts li{align-items:center;display:flex;justify-content:space-between;margin-bottom:.7rem}.posts li a,.posts li div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.posts li time{padding-left:1rem;white-space:nowrap;font-variant-numeric:tabular-nums}code,pre{color:#353535;font-family:San Francisco Mono,Monaco,consolas,lucida console,dejavu sans mono,bitstream vera sans mono,monospace;font-size:normal;border:1px solid #353535;font-size:small}code{padding:.1rem;border:none}pre{padding:.5rem;overflow-x:auto}pre code{border:none}header li,footer li{display:inline;text-transform:uppercase}header a,footer a{text-decoration:none}header ul,footer ul{justify-content:space-between;display:flex}[aria-current=page]{text-decoration:line-through}header,section,footer{padding:1rem 0}.lista li{list-style-type:none}.lista ul{display:flex;list-style-type:none}.nav{padding-top:-3em}ul{list-style-type:square}ul,ol{padding-left:1.2rem}header li,footer li{display:inline;text-transform:uppercase}header a,footer a{text-decoration:none}header ul,footer ul{justify-content:space-between;display:flex}[aria-current=page]{text-decoration:line-through}blockquote{border-left:5px solid #353535;padding-left:1rem}.posts ul,header ul,footer ul{list-style:none}.posts,header ul,footer ul{padding:0}.posts footer{padding-top:-10em}.posts li{align-items:center;display:flex;justify-content:space-between}.posts li a,.posts li div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none}.posts li time{padding-left:1rem;white-space:nowrap;font-variant-numeric:tabular-nums}

0 comments on commit bb65318

Please sign in to comment.