Skip to content

Commit

Permalink
Merge pull request #3 from kevinramage/develop
Browse files Browse the repository at this point in the history
v0.0.3 - Init markdown editor
  • Loading branch information
kevinramage authored Oct 7, 2024
2 parents 712c88f + ccde8c2 commit b633683
Show file tree
Hide file tree
Showing 24 changed files with 1,933 additions and 871 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ pnpm-debug.log*
lerna-debug.log*

node_modules
node_modules2
dist
dist-ssr
*.local
tsconfig.tsbuildinfo

binaries
target
Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
# Knownledga

Knownledga is a tool to read and write markdown files.

## Installation

Install dependencies:

```
npm update
npm update -D
npm install -g pnpm
```

Download rust

## Run
## Run and build

Run client
```
pnpm tauri dev
```

Build a release
```
pnpm tauri build
```

## Build
## Compatibility

pnpm tauri build
[Markdown rendering compatibility](./doc/markdown.md)
[Mermaid rendering compatibility](./doc/markdown.md)
8 changes: 6 additions & 2 deletions common/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ export interface IDocument {
id: string;
name: string;
path: string;
relativePath: string;
content: string;
/*subDocuments: IDocument[];*/
}
type: DOCUMENT_TYPE;
subDocuments: IDocument[];
}

export type DOCUMENT_TYPE = "FOLDER" | "MARKDOWN" | "UNKNOWN";
47 changes: 47 additions & 0 deletions doc/markdown.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Markdown support

- [x] Paragraph
- [x] Heading
- [x] Alternative heading syntax
- [x] Paragraph line break
- [x] Bold syntax with *
- [x] Bold syntax with _
- [x] Italic syntax with *
- [x] Italic syntax with _
- [x] Blockquote
- [ ] Blockquote Multiple paragraphe (Not compatible yet)
- [ ] Nested blockquote (Not compatible yet)
- [x] Ordered list
- [x] Ordered sub list
- [x] Nonordered list
- [x] Nonordered sub list
- [ ] Local images (Not compatible yet)
- [ ] External images (Not compatible yet)
- [x] Internal links
- [x] External links
- [ ] Code (Not compatible yet)
- [ ] Horizontal rules (Not compatible yet)
- [ ] Formatting url and mail (Not compatible yet)
- [ ] Escaping character (Not compatible yet)
- [ ] Html (Not compatible yet)

[Source](https://www.markdownguide.org/basic-syntax/#code)
--------------------

- [ ] Table (Partial not compatible with inline tokens)
- [ ] Table alignment (Not compatible yet)
- [x] Fences code block
- [ ] Syntax highlighting (Not compatible yet)
- [ ] Footnote (Not compatible yet)
- [ ] Heading id (Not compatible yet)
- [ ] Definition list (Not compatible yet)
- [x] Strikethrough
- [ ] Task list (Partial not compatible with inline tokens)
- [ ] Sub task list (Not compatible yet)
- [ ] Emoji (Not compatible yet)
- [ ] Highlight (Not compatible yet)
- [ ] Subscript (Not compatible yet)
- [ ] Superscript (Not compatible yet)
- [ ] Automatic URL linking (Not compatible yet)

[Source](https://www.markdownguide.org/extended-syntax/)
3 changes: 2 additions & 1 deletion doc/mermaid.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,5 @@
- [ ] New shapes 11.3


[Source](https://mermaid.js.org/syntax/flowchart.html#a-stadium-shaped-node)
[Mermaid source](https://mermaid.js.org/syntax/flowchart.html#a-stadium-shaped-node)
[Quoto source](https://quarto.org/docs/authoring/diagrams.html)
11 changes: 6 additions & 5 deletions doc/version.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ This document help to understand the content of each versions

**V 0.0.2 - File explorer**

- [X] Create a new file
- [X] Delete a file
- [X] Update exiting file
- [X] Initialize Mermaid FlowChart rendering
- [x] Create a new file
- [x] Delete a file
- [x] Update exiting file
- [x] Initialize Mermaid FlowChart rendering

**V 0.0.3 - Markdown toolbar**

- [ ] View directory in file explore
- [x] Reduce binaries size
- [x] View directory in file explore
- [ ] Add markdown editor WYSIWYG for basic feature
- [ ] Add Mermaid FlowChart relationship rendering
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
<title>Knowledga</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<link href="./src/index.css" rel="stylesheet" />
</body>
</html>
Loading

0 comments on commit b633683

Please sign in to comment.