Skip to content

Latest commit

 

History

History
355 lines (269 loc) · 8.91 KB

cheatsheet.md

File metadata and controls

355 lines (269 loc) · 8.91 KB

vscode

{
    "workbench.startupEditor": "newUntitledFile",
    "git.enableSmartCommit": true,
    "explorer.confirmDelete": false,
    "editor.minimap.enabled": false,
    "workbench.colorTheme": "Visual Studio Dark",
    "markdown-pdf.breaks": true,
    "editor.renderWhitespace": "all",
    "markdown.extension.toc.levels": "2..5",
    "markdown-pdf.quality": 0,
    "markdown-pdf.footerTemplate": "<div style=\"font-size:9px; margin-left:1cm;\"></div>",
    "markdown-pdf.headerTemplate": "<div style=\"font-size:9px; margin-left:1cm;\"><span class='title'></span></div> <div style=\"font-size:9px; margin-left:auto; margin-right:1cm;\"><span class='pageNumber'></span>/<span class='totalPages'></span></div>",
    "MarkdownPaste.path": "./images/",
    "editor.maxTokenizationLineLength": 200000,
    "editor.renderControlCharacters": true,
    "window.menuBarVisibility": "default",
    "workbench.statusBar.visible": true,
    "markdown.preview.scrollEditorWithPreview": false,
    "markdown.preview.scrollPreviewWithEditor": false,
    "workbench.editor.enablePreview": false,
    "editor.insertSpaces": false,
    "markdown-preview-enhanced.scrollSync": false,
    "editor.largeFileOptimizations": false,
    "security.workspace.trust.untrustedFiles": "open",
    "markdown-preview-enhanced.previewTheme": "github-light.css",
    "editormacros": {
        "interlinear": {
            "type": "multiple",
            "args": {
                "macros": [
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<rt>(... )([0-9])",
                            "replacePattern": "\n- <rt>$2"
                        }
                    },
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<RUBY><ruby><ruby>καὶ",
                            "replacePattern": "\n- <RUBY><ruby><ruby>καὶ"
                        }
                    },
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<RUBY><ruby><ruby>ἵνα",
                            "replacePattern": "\n- <RUBY><ruby><ruby>ἵνα"
                        }
                    },
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<RUBY><ruby><ruby>ὅτι",
                            "replacePattern": "\n- <RUBY><ruby><ruby>ὅτι"
                        }
                    },
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<RUBY><ruby><ruby>ἐὰν",
                            "replacePattern": "\n- <RUBY><ruby><ruby>ἐὰν"
                        }
                    },
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<RUBY><ruby><ruby>ὡς",
                            "replacePattern": "\n- <RUBY><ruby><ruby>ὡς"
                        }
                    },
                    {
                        "type": "replace",
                        "args": {
                            "regex": true,
                            "replaceAll": true,
                            "searchPattern": "<RUBY><ruby><ruby>ἀλλ᾽",
                            "replacePattern": "\n- <RUBY><ruby><ruby>ἀλλ᾽"
                        }
                    }
                ]
            }
        }
    }
}

puppeteer

puppeteer: displayHeaderFooter: true printBackground: true margin: { top: "2cm", right: "2cm", bottom: "2cm", left: "2cm" }


html

שֹׁ֥חַד לָֽקְחוּ־בָ֖ךְ לְמַ֣עַן שְׁפָךְ־דָּ֑ם נֶ֧שֶׁךְ וְתַרְבִּ֣ית לָקַ֗חַתְּ וַתְּבַצְּעִ֤י רֵעַ֙יִךְ֙ בַּעֹ֔שֶׁק וְאֹתִ֣י שָׁכַ֔חַתְּ נְאֻ֖ם אֲדֹנָ֥י יְהוִֽה׃
sdcsdcdsc 6
靠左對齊
- 靠右對齊 - dscdscdsc

靠左對齊靠右對齊


Markdown

標題 1

level 2

level 3

4

5
6

[TOC]

粗體
斜體
斜粗體
hight light
hight light


code


px ⇔ pt (Windows)

windows default = 96 DPI 72 pt = 1 inch = 96 px

Points Pixels
9pt 12px
10pt 13px
11pt 15px
12pt 16px
13pt 17px
14pt 19px
16pt 22px
18pt 24px
20pt 26px
22pt 29px
24pt 32px
26pt 35px
28pt 37px
30pt 40px

引用

文字下標a › 雙重引用上標b


註腳

本文帶註腳1

註腳1

The PDF link should work2

References

連結

[[ 其他文章連結:IGNT/01.md

其他文章內的段落:1.1 三個動詞觀點 (The Three Verbal Aspects)

本文內的段落:bottom qq

表格

Markdown Engine Align Center Align right
Still renders nicely
1 2 3
  • item1
  • item2
  • 5 6

    清單

    1. 大點自動編號 (同一段落內)
      1. 小點
        1. 小小點
          1. ssd
            1. sddd
        2. 小小點
        3. sdscsd
      2. 小點
      3. sdcsdcsd
    2. 大點自動編號 (同一段落內)
    • 大點
      • 小點
        • 小小點
          • sss
        • 小小點
      • 小點
    • 大點

    可折疊區塊

    Here are a few words on my thought about the movie

    Deadpool it was so well shot and a movie I just can't wait to see again.

    **Collapse / Expand** Content goes here, something like
    1. **Something** <br> 
    
    2. So**met**hing <br> 
    
    3. Something.. <br> 
    

    註腳

    1 註腳內容 05793f ^a344fd

    vscode markdown-to-pdf

    ---
    puppeteer:
     landscape: false
     format: "A4"
     displayHeaderFooter: true
     margin: {
     top: "1.5cm", bottom: "1.5cm", left: "1.5cm", right: "1.5cm"}
     headerTemplate: "<div style='font-size: 9px; margin-left: 1cm;'>中台神學院</div> <div style='font-size: 9px; margin-left: auto;'> <b><span class='title'></span></b></div> <div style='font-size: 9px; margin-left: auto; margin-right: 1cm;'> <span class='date'></span></div>"
     footerTemplate: "<div style='font-size: 9px; margin-left:auto; margin-right:1cm;'> <span class='pageNumber'></span> / <span class='totalPages'></span></div>"
     printBackground: true
    ---
    

    GitLab Extension

    A footnote reference tag looks like this: 1

    This reference tag is a mix of letters and numbers. 4

    mermaid diagrams

    graph TB
    
      SubGraph1 --> SubGraph1Flow
      subgraph "SubGraph 1 Flow"
      SubGraph1Flow(SubNode 1)
      SubGraph1Flow -- Choice1 --> DoChoice1
      SubGraph1Flow -- Choice2 --> DoChoice2
      end
    
      subgraph "Main Graph"
      Node1[Node 1] --> Node2[Node 2]
      Node2 --> SubGraph1[Jump to SubGraph1]
      SubGraph1 --> FinalThing[Final Thing]
    end
    
    Loading
    gantt
    title Adding GANTT diagram to mermaid
    
    section 掃羅
    膏抹 (1Sa 9): des1, 2014-01-06,2034-01-08
    Active task:des2, 2024-01-09, 2034-01-08
    Future task:des3, after des2, 100w
    Future task2:des4, after des3, 50w
    
    section 大衛
    膏抹 (1Sa 9): des1, 2014-01-06,2034-01-08
    Active task:des2, 2024-01-09, 2034-01-08
    Future task:des3, after des2, 100w
    Future task2:des4, after des3, 50w
    
    Loading

    bottom

    ^88f4c1

    Footnotes

    1. But right now I think they are just colored pieces of text 2 3

    2. Should it work? I think yes1, unless it needs something proprietary to work3

    3. I've only seen this kind of feature work in PDFs created via Acrobat Reader.

    4. This is another footnote.