Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/draft-0-10-0/tex/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "presets": ["es2015"] }
7 changes: 5 additions & 2 deletions examples/draft-0-10-0/tex/package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
{
"private": true,
"scripts": {
"start": "babel-node ./server.js",
"postinstall": "npm install ../../.."
"start": "babel-node ./server.js"
},
"dependencies": {
"babel": "5.8.23",
"babel-core": "^6.8.0",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"draft-js": "file:../../../",
"express": "^4.13.1",
"immutable": "^3.7.4",
"katex": "^0.5.1",
"react": "^15.0.0",
"react-dom": "^15.0.0",
"webpack": "^1.10.5",
"webpack-dev-server": "^1.10.1"
},
"devDependencies": {
"babel-cli": "^6.18.0"
}
}
15 changes: 15 additions & 0 deletions examples/draft-0-10-0/tex/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# TEX

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/).

### How to run

```bash
# in draft-js folder
yarn
cd examples/draft-0-10-0/tex
yarn
yarn start
```

which will open a server listening on [http://localhost:3000](http://localhost:3000)
Loading