rundel / md4r

An R wrapper for the md4c markdown parsing library
https://rundel.github.io/md4r/
Other
3 stars 1 forks source link

Possible modify operators #10

Open rundel opened 3 months ago

rundel commented 3 months ago

Based on https://github.com/rundel/md4r/issues/8#issuecomment-1975115450 the modify branch contains an attempt at implementing a simplistic approach for node modification via $<-.

Any thoughts @krlmlr ?

krlmlr commented 3 months ago

Thanks. A simple snapshot test (and/or documentation 🙃) would help me to assess.

The current implementation only supports replacing content? What about replacing entire nodes?

rundel commented 3 months ago

@krlmlr fixed things up slightly and there are now docs with some basic examples.

krlmlr commented 3 months ago

Thanks, this looks useful. I'll comment more when I actually get a chance to use it.