-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add superfence notation #45
Comments
Hey Tim! Original poster of the discussion here. In terms of a use-case, as I mentioned in the original post, I'm personally working on an open hardware project where we have a collection of parts in a file and want to showcase subsets of parts needed to make each build. :-) |
I thought it would be easier to understand if I would follow the pandas arguments where possible. But it's not that much clearer anyway. Being able to copy markdown from obsidian and have it work in Mkdocs with only minimal changes is more vaiuable. I'm looking forward to working on this one, but it's low-prio so probably going to take 1-2 months before I have some free time for hobby coding again :D |
No worries, this would be awesome, but not time critical. ;-) Looking forward to your implementation! |
Was there any progress on this, just hit this issue and looking for a solution to use Marco and table-reader together |
No, however I did solve compatibility between Update: v3 released: https://pypi.org/project/mkdocs-table-reader-plugin/ |
Thanks for the update on this, much appreciated. @timvink |
I've reconsidered. I don't want to support an additional format. The reason is compatibility with other plugins, and compatibility with the existing options. Instead I think there an opportunity for a I've already solved some tricky problems in this plugin that can be copied:
So if anyone is up for it, go for it! |
(inspired by this discussion)
Instead of
{{ read_csv('table.csv') }}
we could take inspiration from https://github.com/coddingtonbear/obsidian-csv-table and create a custom superfences notation like so:We could add the following extra options:
reader
(str) one of the pandas functions, likeread_csv
keyword_arguments
, a dictionary, with named arguments, for exampleencoding: 'utf-8'
filter
(list of strings), where each is successively passed to.query()
sortBy
(list of strings), passed to pandas's.sort_values()
maxRows
(int), passed to pandas's.head()
columnVariables
(list of strings), passed topandas's
.rename()`You can already do all this by just using a mkdocs hook to preprocess tables.
So if you read this & have a use-case for this, let me know!
The text was updated successfully, but these errors were encountered: