Skip to content

Commit f53d57b

Browse files
committed
Update cmark to 5c3ef83
1 parent de3462d commit f53d57b

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

command_line.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
emcc -O3 -o libcmark.js cmark.c node.c iterator.c blocks.c inlines.c scanners.c utf8.c buffer.c references.c render.c man.c xml.c html.c commonmark.c latex.c houdini_href_e.c houdini_html_e.c houdini_html_u.c cmark_ctype.c -I ../build/src -s EXPORTED_FUNCTIONS='["_cmark_markdown_to_html", "_cmark_version", "_cmark_version_string"]' -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]'
2+
emcc -O3 -o libcmark.js cmark.c node.c iterator.c blocks.c inlines.c scanners.c utf8.c buffer.c references.c render.c man.c xml.c html.c commonmark.c latex.c houdini_href_e.c houdini_html_e.c houdini_html_u.c cmark_ctype.c -I ../build/src -s EXPORTED_FUNCTIONS='["_cmark_markdown_to_html", "_cmark_version", "_cmark_version_string"]' -s EXTRA_EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' -s WASM=0

libcmark.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libcmark.js.mem

44 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cmark-emscripten",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "This is an Emscripten port of the C reference implementation of CommonMark, cmark.",
55
"keywords": [
66
"markdown",

patch_mem_leak.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/env python3
22

33
filename = 'libcmark.js'
4-
originalCode = 'if(returnType==="string")ret=Pointer_stringify(ret);else'
4+
originalCode = 'if(returnType==="string")return Pointer_stringify(ret);'
55
replacementCode = ('if(returnType==="string"){var foobar=Pointer_stringify(ret);'
6-
'if(ident==="cmark_markdown_to_html")_free(ret);ret=foobar}else')
6+
'if(ident==="cmark_markdown_to_html")_free(ret);return foobar}')
77

88

99
def patch():

0 commit comments

Comments
 (0)