All Projects → BenjaminHoegh → ParsedownMath

BenjaminHoegh / ParsedownMath

Licence: MIT license
LaTeX support in Parsedown

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to ParsedownMath

master-thesis
Выпускная квалификационная работа (ВКР) магистра в LaTeX, оформленная в соответствии с нормоконтролем Севастопольского государственного университета в 2017 г.
Stars: ✭ 84 (+546.15%)
Mutual labels:  latex
pandoc-amsthm
provide a syntax to use amsthm environments in pandoc, with output in LaTeX and HTML
Stars: ✭ 19 (+46.15%)
Mutual labels:  latex
typora-latex-theme
将Typora伪装成LaTeX的中文样式主题,本科生轻量级课程论文撰写的好帮手。This is a theme disguising Typora into Chinese LaTeX style.
Stars: ✭ 2,239 (+17123.08%)
Mutual labels:  latex
zotero-texmacs-integration
Integration of the Juris-M or Zotero reference manager with TeXmacs for using CSL citation styles in documents.
Stars: ✭ 17 (+30.77%)
Mutual labels:  latex
hfmath
Render LaTeX math with Hershey Fonts
Stars: ✭ 76 (+484.62%)
Mutual labels:  latex
LaTeX-Note-Importer-for-Anki
Add-on for the memory training program Anki, allowing to import and export notes written in LaTeX.
Stars: ✭ 26 (+100%)
Mutual labels:  latex
react-latex-next
Render LaTeX in React apps
Stars: ✭ 18 (+38.46%)
Mutual labels:  latex
ads2bibdesk
ads2bibdesk helps you add astrophysics articles listed on NASA/ADS to your BibDesk database using the new ADS Developer API
Stars: ✭ 32 (+146.15%)
Mutual labels:  latex
rfc-bibtex
A command line tool that creates bibtex entries for IETF RFCs and Internet Drafts.
Stars: ✭ 43 (+230.77%)
Mutual labels:  latex
latex-template
南方科技大学 LaTeX 模板目录 SUSTech LaTeX templates
Stars: ✭ 72 (+453.85%)
Mutual labels:  latex
PS-FCN Poster LaTex
LaTex Poster for PS-FCN (ECCV 2018)
Stars: ✭ 41 (+215.38%)
Mutual labels:  latex
rulex
A ruby environment for Latex files
Stars: ✭ 14 (+7.69%)
Mutual labels:  latex
fitchjs
Fitch style proof constructor
Stars: ✭ 19 (+46.15%)
Mutual labels:  latex
TUMGAD
Exercise generator and helpful materials for the Introduction to Algorithms and Data Structures 📚
Stars: ✭ 27 (+107.69%)
Mutual labels:  latex
hustreport
📓 An Unofficial Graduate Report Template in LaTeX for Huazhong University of Science and Technology
Stars: ✭ 18 (+38.46%)
Mutual labels:  latex
SlackLateX
Bot that posts posts Latex pictures
Stars: ✭ 39 (+200%)
Mutual labels:  latex
PythonTipsDS
Python Tips for Data Scientist
Stars: ✭ 23 (+76.92%)
Mutual labels:  latex
golang-latex-listings
Golang definition for LaTeX's listings mode. Code coloration for Go in your LaTeX files!
Stars: ✭ 18 (+38.46%)
Mutual labels:  latex
l2kurz
German short introduction to LaTeX
Stars: ✭ 19 (+46.15%)
Mutual labels:  latex
cdcalendar
A customisable, multilingual calendar with 3 different sizes. With LaTeX.
Stars: ✭ 62 (+376.92%)
Mutual labels:  latex

ParsedownMath

ParsedownMath

GitHub release GitHub

Latex support in Parsedown

Features

  • Works with both Parsedown and ParsedownExtra
  • Tested in php 7.0 to 8.0

Get started

  1. Make sure you have downloaded and included Parsedown or ParsedownExtra
  2. Download the latest release and include ParsedownMath.php
  3. Download and include Katex.js and auto-render.js your HTML

How to write a match section

Inline:

  • \( ... \)
  • $ ... $ if enabled

Block:

  • \[ ... \]
  • $$ ... $$

Examples:

Inline

Inline \(tag{E=mc^2}\) math

<!-- Or -->

Inline $tag{E=mc^2}$ math

Block

$$
    f(x) = \int_{-\infty}^\infty
    \hat f(\xi)\,e^{2 \pi i \xi x}
    \,d\xi
$$

<!-- Or -->

\[
    f(x) = \int_{-\infty}^\infty
    \hat f(\xi)\,e^{2 \pi i \xi x}
    \,d\xi
\]

Options

You can toggle math by doing the following:

$Parsedown = new ParsedownMath([
    'math' => [
        'enabled' => true // Write true to enable the module
    ]
]);

Or if you only want inline or block you can use:

'math' => [
    ['inline'] => [
        'enabled' => false // false disable the module
    ],
    // Or
    ['block'] => [
        'enabled' => false
    ]
]

To enable single dollar sign for inline match:

$Parsedown = new ParsedownMath([
    'math' => [
        'matchSingleDollar' => true // default false
    ]
]);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].