Skip to content
Merged
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
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
node_modules/
dist/
coverage/
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
pids
*.pid
*.seed
*.pid.lock
lib-cov
coverage.*
nyc_output
.grunt
bower_components
.lock-wscript
build/Release
jspm_packages/
web_modules/
*.tsbuildinfo
.npm
.eslintcache
.stylelintcache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/
.node_repl_history
*.tgz
.yarn-integrity
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
.cache
.parcel-cache
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,9 @@ import { renderMath } from 'render-latex';

const inputText = `
This is a paragraph with inline math like $E=mc^2$.
We can also have display math:
$$
\\int_0^\\infty e^{-x^2} dx = \\frac{\\sqrt{\\pi}}{2}
$$
Escaped dollars like \\$5 should be ignored. Backslashes \\\\ need care too.
Let's use other delimiters: \\( a^2 + b^2 = c^2 \\) and
\\[
\\sum_{i=1}^n i = \\frac{n(n+1)}{2}
\\]
Finally, an align environment:
\\begin{align*}
f(x) &= x^2 \\\\
g(x) &= \\frac{1}{x}
\\end{align*}
More text after math.
`;

Expand Down