Skip to content

Commit

Permalink
Thebe code blocks: fix the format of the CodeMirror JS config
Browse files Browse the repository at this point in the history
  • Loading branch information
markkuriekkinen committed Sep 30, 2022
1 parent e864ede commit 8bbd35f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions directives/thebe.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,16 +194,16 @@ def update_thebe_context(app, doctree, docname):
binderUrl: "{binder_url}",
repo: "{org}/{repo}",
ref: "{branch}",
repoProvider: "{provider}"
}},
codeMirrorconfig: {{
theme: '{codemirror_theme}',
mode: '{codemirror_mode}',
lineNumbers: {codemirror_line_numbers},
electricChars: {codemirror_electric_chars},
indentUnit: {codemirror_indent_unit},
indentWithTabs: {codemirror_indent_with_tabs},
matchBrackets: true
repoProvider: "{provider}",
codeMirrorConfig: {{
theme: '{codemirror_theme}',
mode: '{codemirror_mode}',
lineNumbers: {codemirror_line_numbers},
electricChars: {codemirror_electric_chars},
indentUnit: {codemirror_indent_unit},
indentWithTabs: {codemirror_indent_with_tabs},
matchBrackets: true,
}},
}},
kernelOptions: {{
name: "{kernel_name}",
Expand Down

0 comments on commit 8bbd35f

Please sign in to comment.