File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -85,15 +85,16 @@ export default function RunButton({
85
85
setInfo,
86
86
} : Props ) {
87
87
const mode = infoToMode ( info ) ;
88
- const noRun = NO_RUN . has ( mode ) ;
89
88
90
89
const {
90
+ disableMarkdownCodebar,
91
91
jupyterApiEnabled,
92
92
project_id,
93
93
path : filename ,
94
94
is_visible,
95
95
/*hasOpenAI, */
96
96
} = useFileContext ( ) ;
97
+ const noRun = NO_RUN . has ( mode ) || disableMarkdownCodebar ;
97
98
const path = project_id && filename ? path_split ( filename ) . head : undefined ;
98
99
const [ running , setRunning ] = useState < boolean > ( false ) ;
99
100
const outputMessagesRef = useRef < object [ ] | null > ( null ) ;
@@ -140,8 +141,9 @@ export default function RunButton({
140
141
setOutput == null ||
141
142
running ||
142
143
! info . trim ( )
143
- )
144
+ ) {
144
145
return ;
146
+ }
145
147
const { output : messages , kernel : usedKernel } = getFromCache ( {
146
148
input,
147
149
history,
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ React component that describes the input of a cell
9
9
10
10
import { Map } from "immutable" ;
11
11
import { useCallback , useEffect , useRef } from "react" ;
12
-
13
12
import { React , Rendered , redux } from "@cocalc/frontend/app-framework" ;
14
13
import { HiddenXS } from "@cocalc/frontend/components/hidden-visible" ;
15
14
import MarkdownInput from "@cocalc/frontend/editors/markdown-input/multimode" ;
Original file line number Diff line number Diff line change @@ -726,7 +726,12 @@ export const CellList: React.FC<CellListProps> = (props: CellListProps) => {
726
726
727
727
return (
728
728
< FileContext . Provider
729
- value = { { ...fileContext , noSanitize : ! ! trust , HeadingTagComponent } }
729
+ value = { {
730
+ ...fileContext ,
731
+ noSanitize : ! ! trust ,
732
+ HeadingTagComponent,
733
+ disableMarkdownCodebar : true ,
734
+ } }
730
735
>
731
736
{ body }
732
737
</ FileContext . Provider >
You can’t perform that action at this time.
0 commit comments