This module is part of the Apache Sling project.
It contains a work-in-progress markdown resource provider. The code is only lightly tested and meant as a proof-of-content. The only thing worse that the code is the documentation.
Configure a org.apache.sling.mdresource.impl.MarkdownResourceProvider
, e.g.
org.apache.sling.mdresource.impl.MarkdownResourceProvider provider.file="../../whiteboard/mdresourceprovider/src/test/resources/" provider.root="/md-test"
Access http://localhost:8080/md-test.html.
As a genenal rule, the markdown is parsed and placed into the jcr:description
property of the body. The following exceptions apply:
jcr:title
propertyThese special rules are applied only for the first entries at the top of the file. As soon as a ‘non-special’ entry is found, special processing stops. This is an implementation limitation and can technically be removed.
curl http://localhost:8080/md-test.3.json