Skip to content

Commit eadd59e

Browse files
author
Amelia Wattenberger
authored
Merge pull request #66 from githubnext/aw/markdown-edit-block
init markdown-edit-block
2 parents 9e1de6e + 08c788b commit eadd59e

12 files changed

Lines changed: 2102 additions & 10 deletions

File tree

blocks.config.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,21 @@
120120
{
121121
"type": "file",
122122
"id": "markdown-block",
123-
"title": "Markdown",
124-
"description": "View markdown files. You can also view live repo info, using Issues, Releases, and Commits custom components, as well as live code examples with CodeSandbox.",
125-
"sandbox": true,
126-
"entry": "blocks/file-blocks/live-markdown/index.tsx",
127-
"matches": ["*.md", "*.mdx"],
123+
"title": "Markdown block",
124+
"description": "View and edit Markdown content",
125+
"sandbox": false,
126+
"entry": "blocks/file-blocks/markdown-edit/index.tsx",
127+
"matches": ["*"],
128+
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
129+
},
130+
{
131+
"type": "file",
132+
"id": "sandbox-block",
133+
"title": "JS Sandbox block",
134+
"description": "Execute Javascript code",
135+
"sandbox": false,
136+
"entry": "blocks/file-blocks/sandbox/index.tsx",
137+
"matches": ["*"],
128138
"example_path": "https://github.com/githubnext/blocks-tutorial/blob/main/README.md"
129139
},
130140
{

blocks/file-blocks/code/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const oneDarkTheme = EditorView.theme(
1818

1919
".cm-cursor, .cm-dropCursor": { borderLeftColor: colors.cursor },
2020
"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":
21-
{ backgroundColor: colors.bg },
21+
{ backgroundColor: colors.selectionBg },
2222

2323
".cm-panels": { backgroundColor: colors.linesBg, color: colors.text },
2424
".cm-panels.cm-panels-top": {

0 commit comments

Comments
 (0)