Skip to content
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

Editing tables created prior to adopting Zettlr #52

Closed
piccolbo opened this issue Jul 10, 2020 · 5 comments
Closed

Editing tables created prior to adopting Zettlr #52

piccolbo opened this issue Jul 10, 2020 · 5 comments

Comments

@piccolbo
Copy link

piccolbo commented Jul 10, 2020

I have a bunch of tables created in some editor and would like to see or edit them in Zettlr after importing the document, is there a way? Thanks

@nathanlesage
Copy link
Member

If these are tables supported by Pandoc, the Table Editor should automatically pick them up: I'd suggest you just give it a try and import a document. If something breaks, feel free to report this as a bug, but please make sure to include as much information as possible!

@piccolbo
Copy link
Author

You are right, it's only with a particularly big one that I see this problem. Probably some formatting error.

@nathanlesage
Copy link
Member

Probably some formatting error.

Yeah, Markdown tables can really be a pain sometimes :/

@piccolbo
Copy link
Author

I think there were two fused lines. But when I reopened the file, the table again was not formatted. I just added a newline at the end, and back on track it was. So maybe a combination of the two: you need a consistent number of columns and you need some separation below (and above?). It is offputting from a user perspective. If there were some red marks like linters in IDES, or a partially formatted table or anything to guide the user it would be awesome. I solved the problem when I realized that by breaking the table in two chunks, the first parsed fine. Moved the break further down until it didn't. There were the two offending lines. But for users who don't know binary search ;) it doesn't look it's a viable approach.

@nathanlesage
Copy link
Member

If there were some red marks like linters in IDES, or a partially formatted table or anything to guide the user it would be awesome.

Absolutely! The TableEditor needs some refreshments either way, as there are still other things that should be improved upon. (However, N.B.: you shouldn't do Markdown Tables either way if they are too complex, because then it makes more sense to just import them from some other file format and glue them into the correct place using the Project feature … well, I guess I need to finally get doing those tutorial videos …)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants