mirror of
https://github.com/swiftlang/swift-cmark.git
synced 2026-01-18 17:31:20 +01:00
Note this includes a hack to the core code to escape pipes in the 'commonmark' renderer. This is to fix test cases with the table extension; i.e. we treat pipes as special characters that need escaping. We use the cmark_mem of the parser in order to ensure we use the arena allocator when necessary. A very flexible table format is supported; see test/extensions.txt for examples. Leading and trailing pipes can be omitted, and alignment specifiers can be used in the separator between the header and body. Table bodies don't need to be a consistent width. Embedded HTML is OK. Note we reuse the inline parser from cmark to parse tables -- this is to ensure pipes e.g. in the middle of an inline code block don't prematurely terminate a table cell.
11 lines
116 B
Plaintext
11 lines
116 B
Plaintext
{
|
|
.
|
|
Memcheck:Leak
|
|
fun:malloc
|
|
fun:__smakebuf
|
|
fun:__srefill0
|
|
fun:__fread
|
|
fun:fread
|
|
fun:main
|
|
}
|