dokka
dokka copied to clipboard
Introduce API to rewrite samples
#3108
Finally I have decided to use SampleRewriter
as an extension point.
In case of using it as an argument of resolveSample
:
- I am not sure
SampleTransformer
will not changed in the future. It also changes pages resources. Maybe it even makes sense to get rid of it or transform it toRunnableSampleTransformer
- With overriding of some
SampleTransformer
's functions we can have the same situation like withHtmlRender
- Using an extension point is more obvious for users to rewrite samples