Jacky Zhao
2023-07-08 b90590b9f487cdd49f019375fa5a09aad2e8ec1f
polish
7 files modified
32 ■■■■ changed files
content/philosophy.md 2 ●●● patch | view | raw | blame | history
content/showcase.md 12 ●●●●● patch | view | raw | blame | history
quartz.config.ts 2 ●●● patch | view | raw | blame | history
quartz/plugins/transformers/frontmatter.ts 2 ●●● patch | view | raw | blame | history
quartz/plugins/transformers/links.ts 3 ●●●● patch | view | raw | blame | history
quartz/plugins/transformers/ofm.ts 2 ●●● patch | view | raw | blame | history
quartz/styles/base.scss 9 ●●●●● patch | view | raw | blame | history
content/philosophy.md
@@ -11,4 +11,4 @@
2. Having a public digital garden invites open conversations
3. It makes keeping personal notes and knowledge *playful and fun*
**The goal of Quartz is to make sharing your digital garden free and simple.** Quartz exists as a tool to accomodate
**The goal of Quartz is to make sharing your digital garden free and simple.** Quartz exists as a tool to accomodate
content/showcase.md
@@ -17,3 +17,15 @@
- [Mike's AI Garden ðŸ¤–🪴](https://mwalton.me/)
If you want to see your own on here, submit a [Pull Request adding yourself to this file](https://github.com/jackyzha0/quartz/blob/v4-alpha/content/showcase.md)!
Left-aligned text | Center-aligned text | Right-aligned text
:-- | :--: | --:
Content | Content | Content
```mermaid
sequenceDiagram
    Alice->>+John: Hello John, how are you?
    Alice->>+John: John, can you hear me?
    John-->>-Alice: Hi Alice, I can hear you!
    John-->>-Alice: I feel great!
```
quartz.config.ts
@@ -95,7 +95,7 @@
      }),
      Plugin.ObsidianFlavoredMarkdown(),
      Plugin.GitHubFlavoredMarkdown(),
      Plugin.CrawlLinks(),
      Plugin.CrawlLinks({ markdownLinkResolution: 'absolute' }),
      Plugin.SyntaxHighlighting(),
      Plugin.Katex(),
      Plugin.Description(),
quartz/plugins/transformers/frontmatter.ts
@@ -30,7 +30,7 @@
            })
            if (data.tags && !Array.isArray(data.tags)) {
              data.tags = data.tags.toString().split(" ")
              data.tags = data.tags.toString().split(",").map((tag: string) => tag.trim())
            }
            // fill in frontmatter
quartz/plugins/transformers/links.ts
@@ -6,7 +6,7 @@
interface Options {
  /** How to resolve Markdown paths */
  markdownLinkResolution: 'absolute' | 'relative'
  markdownLinkResolution: 'absolute' | 'relative' | 'shortest'
  /** Strips folders from a link so that it looks nice */
  prettyLinks: boolean
  indexAnchorLinks: boolean
@@ -35,6 +35,7 @@
            } else {
              return './' + relativeToRoot(curSlug, targetSlug)
            }
            // todo: handle shortest path
          }
          const outgoing: Set<string> = new Set()
quartz/plugins/transformers/ofm.ts
@@ -22,7 +22,7 @@
  highlight: true,
  wikilinks: true,
  callouts: true,
  mermaid: false,
  mermaid: true,
}
const icons = {
quartz/styles/base.scss
@@ -216,6 +216,10 @@
  overflow-x: auto;
  border: 1px solid var(--lightgray);
  &:has(> code.mermaid) {
    border: none;
  }
  & > code {
    background: none;
    padding: 0;
@@ -261,15 +265,14 @@
}
table {
  border: 2px solid var(--gray);
  width: 100%;
  border: 1px solid var(--gray);
  padding: 1.5rem;
  border-collapse: collapse;
}
td, th {
  padding: 0.2rem 1rem;
  border: 2px solid var(--gray);
  border: 1px solid var(--gray);
}
img {