Merge pull request #49 from toeverything/example-markdown

Markdown updates
This commit is contained in:
Qi
2022-10-24 18:21:16 +08:00
committed by GitHub
2 changed files with 69 additions and 69 deletions

View File

@@ -1,27 +1,27 @@
const exampleMarkdown = `The [AFFiNE Alpha](https://pathfinder.affine.systems/) is here! 👏
const exampleMarkdown = `The AFFiNE Alpha is here! You can also view our [Official Website](https://affine.pro/)!
**What's different in AFFiNE Alpha?**
1. A much ~smoother editing~ experience, with much ~greater stability~;
2. More complete ~Markdown~ support and improved ~keyboard shortcuts~;
3. New features such as ~dark mode~
3. New features such as ~dark mode~;
* **Switch between view styles using the** ☀ **and** 🌙.
4. ~Clean and modern UI/UX~ design.
**Looking for Markdown syntax or keyboard shortcuts?**
* Find the (?) in the bottom right, then the ️, to view a full list. of \`Keyboard Shortcuts\`
* Find the (?) in the bottom right, then the ️⌨️, to view a full list of \`Keyboard Shortcuts\`
**Have an enjoyable editing experience !!!** **😃**
**Have an enjoyable editing experience !!!** 😃
Have some feedback or just want to get in touch? Use the (?), then 🎧 to get in touch and join our communities.
**Still in development**
There also somethings you should consider about this AFFiNE Alpha including some ~limitations~:
There are also some things you should consider about this AFFiNE Alpha including some ~limitations~:
* Single page editing - currently editing multiple docs/pages is not supported;
* Changes are not automatically stored, to save changes you should export your data. Options can be found by going to the top right and finding the \`⋮\` icon.
* Changes are not automatically stored, to save changes you should export your data. Options can be found by going to the top right and finding the \`⋮\` icon;
* Without an import/open feature you are still able to access your data by copying it back in.
**Keyboard Shortcuts:**
@@ -44,7 +44,7 @@ There also somethings you should consider about this AFFiNE Alpha including some
16. Increase indent: \`Tab\`
17. Reduce indent: \`⇧+Tab\` or \`Shift+Tab\`
_Markdown Syntax:_
**Markdown Syntax:**
1. Bold: \`**text**\`
2. Italic: \`*text*\`

View File

@@ -23,13 +23,13 @@ export const macMarkdownShortcuts = {
Italic: '*Text* ',
Underline: '~Text~ ',
Strikethrough: '~~Text~~ ',
'Inline code': '`Code` ',
'Heading 1': '# ',
'Heading 2': '## ',
'Heading 3': '### ',
'Heading 4': '#### ',
'Heading 5': '##### ',
'Heading 6': '###### ',
'Inline code': '`Text` ',
'Heading 1': '# Text',
'Heading 2': '## Text',
'Heading 3': '### Text',
'Heading 4': '#### Text',
'Heading 5': '##### Text',
'Heading 6': '###### Text',
};
export const windowsKeyboardShortcuts = {
@@ -56,11 +56,11 @@ export const winMarkdownShortcuts = {
Italic: '*Text* ',
Underline: '~Text~ ',
Strikethrough: '~~Text~~ ',
'Inline code': '`Code` ',
'Heading 1': '# ',
'Heading 2': '## ',
'Heading 3': '### ',
'Heading 4': '#### ',
'Heading 5': '##### ',
'Heading 6': '###### ',
'Inline code': '`Text` ',
'Heading 1': '# Text',
'Heading 2': '## Text',
'Heading 3': '### Text',
'Heading 4': '#### Text',
'Heading 5': '##### Text',
'Heading 6': '###### Text',
};