Skip to content
This repository was archived by the owner on Jun 15, 2022. It is now read-only.

Commit 8795cc2

Browse files
committed
Use predefined monospace font for code, 1.3.4
1 parent 336b54c commit 8795cc2

File tree

8 files changed

+17
-7
lines changed

8 files changed

+17
-7
lines changed

app/components/Home.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ export default class Home extends React.Component {
4646

4747
changeMode(mode) {
4848
this.setState({mode: mode});
49-
50-
this.componentManager.setComponentDataValueForKey("mode", mode.mode);
49+
if(this.note) {
50+
this.componentManager.setComponentDataValueForKey("mode", mode.mode);
51+
}
5152
}
5253

5354
configureMarkdown() {

app/stylesheets/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ body, html {
154154
border-radius: 3px;
155155
}
156156

157+
code {
158+
font-family: var(--sn-stylekit-monospace-font);
159+
}
160+
157161
table {
158162
display: block;
159163
margin-bottom: 12px;

dist/dist.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dist.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,10 @@ function (_React$Component) {
20952095
this.setState({
20962096
mode: mode
20972097
});
2098-
this.componentManager.setComponentDataValueForKey("mode", mode.mode);
2098+
2099+
if (this.note) {
2100+
this.componentManager.setComponentDataValueForKey("mode", mode.mode);
2101+
}
20992102
}
21002103
}, {
21012104
key: "configureMarkdown",

dist/dist.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sn-simple-markdown-editor",
3-
"version": "1.3.3",
3+
"version": "1.3.4",
44
"main": "dist/dist.js",
55
"scripts": {
66
"lint": "eslint --cache --ignore-path .gitignore --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",

0 commit comments

Comments
 (0)