-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
migration to 2.10+ #1
Comments
Thanks @kysko I didn't know that the SimpleTable stuff by @tarleb already had made it into master. Hopefully 2.11 will be released soon. P.S. Note that any modifications should be made in the MoonScript code since the Lua code is autogenerated from the MoonScript code. It's OK for this comment though; I can certainly locate/translate. |
BTW the reason I use |
Just to add an idea:
could be equivalent to this (if I use the docutils grid table notation):
with a Div with the keyvals Of course one would have to be very careful to create a valid table, might not be self-evident with complex mix of row spans and col spans. There's no pandoc-markdown reader or writer for complex tables right now, so one would need to wait for 'round-tripping'. Anyways, that's just an idea for you if you ever want to tackle complex tables. |
@kysko wrote:
Thanks. I have already thought along those lines myself. One problem with it is that I already make somewhat heavy use of divs around list item content in order to style table cell content, both for HTML/CSS styling and for injecting LaTeX code with filters. One would have to use nested divs and be careful to put any content styling div inside the cell styling div. Actually complex tables was the only thing which I preferred to do in a WYSIWYG editor back in the days when I wrote much HTML by hand. It was hard to keep the cell/row spans straight in my head without the visual feedback. I guess using ordered lists would alleviate this a lot, since you could then just "skip" the list numbers for "merged" cells in the rows and keep track of the row numbers in the source, things which I used to do with the help of HTML comments or ids of the form |
Well then, if you already make use of cell-englobing divs, perhaps this might an advantage rather than a problem: the use of the keyvals So you could proceed as usual, but being careful at reserving certain class names ( But your specific real-world uses are surely more complex than the test cases, so I might not see the forest nor the trees! |
@kysko you may want to check out the SimpleTable branch before I merge it with master tomorrow. [1] It is updated to use and convert from/to SimpleTable if it exist and to throw an error if it doesn't exist and PANDOC_VERSION >= 2.10.0. 40a222b has the main changes although some fixes were added later [1]: Since I had omitted to state a version number I decided to use YYYYMMDD[HH] as version number, and I want the version with these updates to be version 20201001! 😃 |
After a quick look at the lua file (simpletable branch) and a quick test, it seems to look fine. Just for fun, to kill some time, I rewrote the Lua version of Since my use of It's not a pull request, just a personal unpublished mod for fun, so not in MoonScript. If you're interested, just for inspiration, I can make a temporary gist for you. You'll eventually make your choices on how to handle rowspans and colspans, but this might give you some ideas. Nothing done for |
@kysko Sure, I will be happy to have a look. There is no hurry as I'll
probably not have time to look at it before the weekend.
|
Crazy days... Anywhoo, I finally created the gist for the mod I was telling you about, after this and that and this and that addition/removal/changes... there's always something! Take what you want from it. The main point is how to manipulate the information with the new richer Table format. |
Moved this comment here from pandoc issues:
Check the latest pandoc nightly for SimpleTable support by tarleb, or next pandoc 2.11.
In your
table2lol
function, at line 233, use something like:And in your
lol2table
function, at line 185, use something like:The text was updated successfully, but these errors were encountered: