markdown icon indicating copy to clipboard operation
markdown copied to clipboard

md.Renderer implementation status

Open wader opened this issue 2 years ago • 7 comments

Hello! I'm in the need for a markdown renderer so i've thought about giving a go at finishing or improve md.Renderer but would like to ask if it would be welcome and if there has been any previous attempt at doing it that could be useful?

wader avatar Jun 25 '23 09:06 wader

Sure, that would be great.

Other than the code already there, I don't know of any other code that would be very relevant.

kjk avatar Jun 25 '23 11:06 kjk

this might help too: https://github.com/mmarkdown/mmark/commit/6e26b214bd1650984cf8502e6802237da7383291 it's the commit where I deleted to markdown renderer for mmark (which has more complex constructs)

miekg avatar Jun 25 '23 11:06 miekg

@miekg Thanks that looks very useful 👍

wader avatar Jun 26 '23 09:06 wader

Hi @wader , is there any progress for the md.Renderer? It seems some ast types are not supported yet.

panic: node *ast.HorizontalRule NYI

gen2thomas avatar Jan 11 '24 13:01 gen2thomas

@gen2thomas Not much progress. If i remember correctly i implement a few more node type but then got derailed with something else. My use case for this would be to batch transform/reformat md files.

wader avatar Jan 11 '24 13:01 wader

@wader thanks for your fast reply. My use case is update parts of one md document by parts of other md documents. Do you have a fork to get some ideas? Meanwhile I will test this tool, based on goldmark: https://github.com/teekennedy/goldmark-markdown

gen2thomas avatar Jan 11 '24 14:01 gen2thomas

Can try see if i can find the work in progress branch, but i don't think i got very far

wader avatar Jan 11 '24 23:01 wader

No progress and I'm not planning to work on this myself, so closing.

kjk avatar Dec 04 '24 18:12 kjk