Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 900ef76

Browse files
guilhermecvmfacebook-github-bot
authored andcommitted
Fixing tex example
Summary: **Summary** Fixing issue #1408 Closes #1504 Differential Revision: D6924656 fbshipit-source-id: 6f12a01c1bed709cfb7da601b1dbf404d5b038a3
1 parent 7885959 commit 900ef76

File tree

8 files changed

+6252
-4
lines changed

8 files changed

+6252
-4
lines changed

examples/draft-0-10-0/tex/.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "presets": ["es2015"] }
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
{
22
"private": true,
33
"scripts": {
4-
"start": "babel-node ./server.js",
5-
"postinstall": "npm install ../../.."
4+
"start": "babel-node ./server.js"
65
},
76
"dependencies": {
87
"babel": "5.8.23",
98
"babel-core": "^6.8.0",
109
"babel-loader": "^6.2.4",
1110
"babel-preset-es2015": "^6.9.0",
1211
"babel-preset-react": "^6.11.1",
12+
"draft-js": "file:../../../",
1313
"express": "^4.13.1",
1414
"immutable": "^3.7.4",
1515
"katex": "^0.5.1",
1616
"react": "^15.0.0",
1717
"react-dom": "^15.0.0",
1818
"webpack": "^1.10.5",
1919
"webpack-dev-server": "^1.10.1"
20+
},
21+
"devDependencies": {
22+
"babel-cli": "^6.18.0"
2023
}
2124
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# TEX
2+
3+
The TeX editor in the Draft repository provides a live example of custom block rendering, with TeX syntax translated on the fly into editable embedded formula rendering via the [KaTeX library](https://khan.github.io/KaTeX/).
4+
5+
### How to run
6+
7+
```bash
8+
# in draft-js folder
9+
yarn
10+
cd examples/draft-0-10-0/tex
11+
yarn
12+
yarn start
13+
```
14+
15+
which will open a server listening on [http://localhost:3000](http://localhost:3000)

0 commit comments

Comments
 (0)