MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / char_math

Function char_math

libraries/hoedown/src/document.c:1327–1339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1325}
1326
1327static size_t
1328char_math(hoedown_buffer *ob, hoedown_document *doc, uint8_t *data, size_t offset, size_t size)
1329{
1330 /* double dollar */
1331 if (size > 1 && data[1] == '$')
1332 return parse_math(ob, doc, data, offset, size, "$$", 2, 1);
1333
1334 /* single dollar allowed only with MATH_EXPLICIT flag */
1335 if (doc->ext_flags & HOEDOWN_EXT_MATH_EXPLICIT)
1336 return parse_math(ob, doc, data, offset, size, "$", 1, 0);
1337
1338 return 0;
1339}
1340
1341/*********************************
1342 * BLOCK-LEVEL PARSING FUNCTIONS *

Callers

nothing calls this directly

Calls 1

parse_mathFunction · 0.85

Tested by

no test coverage detected