I'm working in a project that named RustyBrain. It's a note-taking application that practices Zettelkasten method of Niklas Luhmann.
+ + +diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index 19d9374..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build static site - -# Controls when the action will run. -on: - push: - branches: - - master - - main - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - with: - submodules: true - - name: build_and_deploy - uses: shalzz/zola-deploy-action@v0.15.3 - env: - # Target branch - PAGES_BRANCH: gh-pages - # Provide personal access token - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 269489c..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "themes/juice"] - path = themes/juice - url = https://github.com/huhu/juice diff --git a/20220215/index.html b/20220215/index.html new file mode 100644 index 0000000..658984e --- /dev/null +++ b/20220215/index.html @@ -0,0 +1,131 @@ + + + +
+ +I'm working in a project that named RustyBrain. It's a note-taking application that practices Zettelkasten method of Niklas Luhmann.
+ + +Markdown (CommonMark Spec v0.29-gfm) grammar +for tree-sitter
+Note: This grammar is based on the assumption that +link label matchings will never fail +since reference links can come before their reference definitions, +which causes it hard to do incrementally parsing without this assumption.
+ +npm install tree-sitter-markdown tree-sitter
+
+const Parser = require("tree-sitter");
+const Markdown = require("tree-sitter-markdown");
+
+const parser = new Parser();
+parser.setLanguage(Markdown);
+
+const sourceCode = `
+# foo
+- bar
+ baz
+`;
+
+const tree = parser.parse(sourceCode);
+console.log(tree.rootNode.toString());
+// (document
+// (atx_heading
+// (atx_heading_marker)
+// (heading_content))
+// (tight_list
+// (list_item
+// (list_marker)
+// (indented_code_block)
+// (paragraph))))
+
+MIT © Ika
+ + +