On Fri, 2018-07-27 at 10:14 +0200, Andrei Dulvac wrote: > Hi. > > That's cool indeed! > > What about using (potentially different) HTL scripts and create a > Sling > model that reads the raw markdown?
The markdown files have a default resource type of sling/markdown/file [1] . This can be overriden by defining another 'sling:resourceType' property in the YAML front matter. And using Bertrand's suggestion of separating 'raw' and 'rendered' properties means that we can potentially create independend rendering scripts, and not rely on the one from the MarkdownResource. Thanks, Robert [1]: https://github.com/apache/sling-whiteboard/blob/f96ac30acce34426a46cffb85dacc89d7801255b/mdresourceprovider/src/main/java/org/apache/sling/mdresource/impl/MarkdownResource.java#L123
