Socket
Socket
Sign inDemoInstall

@coding-blocks/showdown-katex

Package Overview
Dependencies
29
Maintainers
6
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

0.4.0

Diff

Changelog

Source

0.4.0 2017-01-10

NEW
  • rename to showdown-katex
  • disallow global config
  • move window.katexLatex to window.showdownKatex
  • katex is now bundled with showdownKatex, so there's no need to include externally anymore.
FIXED
  • 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 to asciimath. so:

      && E=mc^2 &&
    

    becomes

      ```asciimath
      E=mc^2
      ```
    
MIGRATION
  • update references to katex-latex in files and showdown extension and update to showdown-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 the extensions 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc