diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e3d33a0 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/README.md b/README.md index a2c42eb..e1ff6bc 100644 --- a/README.md +++ b/README.md @@ -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. `;