Hi Carsten,

On Thu, 2020-08-27 at 08:54 +0200, Carsten Ziegeler wrote:
> Hi,
> 
> I created a markdown resource decorator module ( [1] ) based on
> Robert's 
> md resource provider.
> 
> With a decorator you can decorate resources from any provider, so
> you 
> can handle file resources, JCR resources etc.
> 
> Based on configuration it can extract a yaml frontmatter, title and 
> render the md to markdown - all of this gets put as additional 
> attributes into the value map of the decorated resource. (Similar to
> the 
> md resource provider)
> 
> I've also added initial code for link rewriting in the rendered html.
> 
> The solution is more flexible than the md resource provider but is 
> missing the index feature of that provider.

Looks good! 

Robert

> 
> Right now, the md is rendered as html on first access of the value
> map. 
> This could be made more lazy by putting a Supplier into the value
> map 
> which triggers rendering the first time the Supplier is used.
> 
> 
> [1] 
> https://github.com/apache/sling-whiteboard/tree/master/mdresourcedecorator
> 
> Regards
> Carsten
> --
> Carsten Ziegeler
> Adobe Research Switzerland
> cziege...@apache.org

Reply via email to