-
Notifications
You must be signed in to change notification settings - Fork 71
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
Markdown Renderer #10
Comments
That might come handy for some other use cases: the code blocks could be executed and their output put back into markdown file. |
Hi! I wrote a renderer like this a few months ago for a Markdown formatter, but only now stumbled upon this issue. All of the renderer code can be found in this package (the renderer class itself is declared in Maybe that could be interesting/inspiring/useful for anyone implementing a renderer of their own. I also don't have any problem with upstreaming the renderer class as is, if someone sees it as a good fit for this project. |
Oh awesome great work, the pre-commit was exactly what I had in mind!
I'd certainly be interested in moving the package into the executablebooks organisation, with you as a maintainer? But obviously that's entirely up to 😄 also cc @a-vrma |
Its funny because I've literally just written a pre-commit hook today: https://github.com/executablebooks/scss-compile |
Ok so first lets clarify one thing. By "the package" do you mean The way I see it, in the scope of this issue it would make sense to discuss moving the renderer class to If what you meant was transferring the repository altogether, then I'm open to consider that too, but we might want to discuss it in another issue in mdformat's issue tracker? |
Yep Also I would rather
sure wherever 😄 It looks like a very well maintained package to me, with all the mod-cons lol (pre-commits, GH workflows, etc), so I certainly would be looking to "interfere" much; just propose a few additions and look to promote/utilise it in the rest of the EBP stack (myst-parser, jupyter-book, etc) |
Haha ok lets do this here then. I slightly misunderstood the intent of this issue (thinking it wants to add the renderer to this repo) so thought this would be very off topic. I'm thinking transferring the repo might be a good idea:
Some rules I would like to start off with though:
Does this seem reasonable to you? Anything to add from your side? If not, I'm willing to do the transfer, just have to look into the technicalities. Never done that in github before. |
No nothing's off-topic lol, the intent was mainly just a TODO item for myself not to forget!
Yep that's the idea 👍 it hopefully just allows for a little more guarantee of long-term package maintenance and groups packages of similar interest in a single place (~python packages focussed on documentation)
Yeh all sounds good to me. All the EBP packages are set up with protected master and CI 👍
So I've sent you a request to join the EBP org, at which point you can transfer ownership At this point I need to go in and set you to full admin privileges and then you can go in and ensure all the branch protections are to your requirements. To note though, I don't think there is a way to physically block organisation owners (me and a few others) from having access to admin controls. |
Alrighty, here's the new address: https://github.com/executablebooks/mdformat 🥳 |
thanks 🙏 Before closing this issue I should
|
So after two years this issue is still open while #164 is not. Other older issues that are still open are also about renderers and the docs only mention the html-renderer. So what is the plan here? It seems like rendering markdown could be a unique ability of this project as it is mentioned there. I had a look at mdformat and it is not clear how I could ulitize parts of mdformat to create a markdown renderer. I created an issue there that also mentions the panflute idea. I just want (somewhat configureable) markdown rendering, given a |
Or asked another way: What does this project need? More docs? A standalone markdown renderer? A decision about the panflute idea? More people willing to pitch in? I don't want to approach this only from the perspective of my needs. |
This MDRenderer class here is a Markdown renderer compatible with
The configurability part is something I've not very excited to maintain myself. But the license is MIT so as long as you keep the license and copyright, you can make it as configurable as you want and redistribute yourself. |
i.e. round trip conversion md-tokens-md. This would be useful for example to act as a formatter, whereby the max-line length could be specified and other options like:
*
or_
to denote bold/emphasis (particularly if nested)The text was updated successfully, but these errors were encountered: