Tony Brix
Tony Brix
Yes the `baseUrl` must end with a slash. I'm not sure why that was a requirement originally but we are going to be deprecating that option in the future so...
You could also override the renderer to provide the base url ```js const marked = require('marked'); const renderer = new marked.Renderer(); const baseUrl = '/fields/markdown/get/image?path='; const originalRendererLink = renderer.link.bind(renderer); const...
@Hideer You can return whatever you want in the `renderer.image` function e.g. ```js renderer.image = (href, title, text) => { return ``; }; ```
No, any method that is not overwritten is assumed to be using the default implementation
Perhaps we could add a function that does that. Something like: ```js const md = require('marked'); const renderer = new md.Renderer(); renderer.all(htmlString => /* set all methods to use this...
@marco-silva0000 yes
Not sure what you mean. marked doesn't write to any files.
You want an option to make sure the input file is not the same as the output file?
> note `marked -i README.md -o README.html` the `md` vs `html` So it shouldn't overwrite the input file. I'm not exactly sure what you are looking for.
If you don't want to overwrite the file can't you just make sure the files are different? I don't know how adding an option would help that.