- upgrade dependencies
- KaTeX: 0.11.1 → 0.16.2
- Showdown: 1.9.1 → 2.1.0
- added KaTeX
mhchem
extension for writing chemical equations
- upgrade dependencies
- documentation build system:
npm run docs
- user provided delimiters take priority
- nodejs support: polyfill
DOMParser
anddocument
with jsdom package and add cjs build inlib/
(#7, #11)
- point
package.json
.main
to cjs build - point
package.json
.browser
to umd build
- rendering math inside inline code and code blocks
- make
$$
latex delimiter inline instead of display mode - use code block style to use display mode
- remove
\\[ ... \\]
latex delimiter - remove
\\( ... \\)
latex delimiter - remove
&&
asciimath delimiter
- remove
- update
katex
dependency to0.10.0
&&
asciimath separator seems to work now¯\_(ツ)_/¯
- correct files now uploaded to npm
- eslint errors
- rename to showdown-katex
- disallow global config
- move
window.katexLatex
towindow.showdownKatex
- katex is now bundled with showdownKatex, so there's no need to include externally anymore.
-
add inline latex examples
-
add inline asciimath examples
-
remove
&&
as a delimiter for asciimath in displayMode. it was giving too mouch trouble. For asciimath in displayMode, use code block style with the lang set toasciimath
. so:&& E=mc^2 &&
becomes
```asciimath E=mc^2 ```
-
update references to
katex-latex
in files and showdown extension and update toshowdown-katex
-
if previously using global config, it should now be passed to the global
showdownKatex
function which returns a showdown extension that can be passed as part of theextensions
array// before window.katexLatex.config = { throwOnError: true, }; // now const converter = new showdown.Converter({ extensions: [showdownKatex({ throwOnError: true, })] }); converter.makeHtml('~x=2~')
if not using custom config, just list
"showdown-katex"
in the extensions
- publish to unpkg
- remove from bower
- there is no longer a version without the asciimath to tex script, so there is no
katex-latex.bundle.js
. just includekatex-latex.js
orkatex-latex.min.js
. - if you want inline math rendering make sure to include the auto-render extension
- moved from gulp to npm scripts and rollup based build system
- moved
dist/ASCIIMathTeXImg.js
tosrc/asciimath-to-tex.js
, adopting it into the source of the project - treeshaking the extra functions in
asciimath-to-tex.js
- moved to es6 thanks to babel and rollup
- added katex auto-render extension integration. it is not bundled along with katex-latex. so there is inline latex and asciimath support now!
- exports showdown extension function as default and defines
window.katexLatex
function - show source expression on hover as the
<span>
'stitle
- set up testing environment with ava
- wrapping
<div>
was substituted with a<span>
to allow for flexibility - demo now pretty prints normal code by using
bootmark
- no more jquery dependency!
- better organized examples
- asciimath support
- custom asciimath syntax
- allow users to customize katex rendering through
window.katex.config
object - bundle file includes what's necessary to render asciimath, but not KaTeX it self
- ...
- doesn't require characters to be escaped
- support custom latex syntax on markdown
- plays well with bootmark
- ...