quarto-dev / gridtables Goto Github PK
View Code? Open in Web Editor NEWHaskell parser for reStructuredText-style grid tables.
License: MIT License
Haskell parser for reStructuredText-style grid tables.
License: MIT License
Zero-width joiners are treated like half-width chars, but it would be better to treat the combined chars as a single character.
The following table
+-----------+-------+
| a | back |
+===========+=======+
| ø̞ | o̞ |
+-----------+-------+
gets parsed as having rowspans:
ArrayTable {arrayTableCells = array ((1,1),(2,2)) [((1,1),ContentCell 2 1 [" a ","==========="," \248\798 "]),((1,2),ContentCell 2 1 [" back ","======="," o\798 "]),((2,1),ContinuationCell (1,1)),((2,2),ContinuationCell (1,2))], arrayTableHead = Nothing, arrayTableFoot = Nothing, arrayTableColSpecs = array (1,2) [(1,(AlignDefault,11)),(2,(AlignDefault,7))]
Replacing the accented characters (formed with combining accents) with regular ascii letters makes the problem go away, so I assume it has to do with character width calculations.
Originally jgm/pandoc#9145.
Column alignments are not calculated correctly in tables like
+:---------:+
| Col 1 & 2 |
+-----+-----+
| foo | bar |
+-----+-----+
All columns spanned by a column with alignment information should share that alignment. Currently only the first column gets the right alignment.
Describe:
This table should not crash the tracer.
+---+
|one|
+---+---+
|one|two|
+---+---+
A malformed table like
+---+--+
|one|two|
+---+---+
|one|two|
+---+---+
should still be parsed as a table with four cells, despite the top line being too short.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.