Skip to content

Adding TokenReplacingPostProcessorSample and UnderlineExtensionSample#288

Merged
vsch merged 1 commit intovsch:masterfrom
markkolich:i/286
Dec 17, 2018
Merged

Adding TokenReplacingPostProcessorSample and UnderlineExtensionSample#288
vsch merged 1 commit intovsch:masterfrom
markkolich:i/286

Conversation

@markkolich
Copy link
Copy Markdown
Contributor

@markkolich markkolich commented Dec 16, 2018

@vsch as discussed in #286 here's a PR that introduces 2 new working samples I cobbled together based on your guidance:

  • TokenReplacingPostProcessorSample.java: A sample that demonstrates how to strip (replace) specific tokens from a parsed document prior to rendering.
  • UnderlineExtensionSample.java: A sample that demonstrates how to add HTML rendering support for a custom token, in this case, + which is rendered using the <ins> tag.

Feedback welcome!

@vsch
Copy link
Copy Markdown
Owner

vsch commented Dec 16, 2018

@markkolich, thank you. BTW, there is an extension for doing + <ins>, flexmark-ext-ins module but I am glad you made one yourself for the experience of adding extensions.

@markkolich
Copy link
Copy Markdown
Contributor Author

BTW, there is an extension for doing + <ins>, flexmark-ext-ins module

LOL! I didn't even notice that module. You're right though, it was a good exercise nonetheless. Hope these samples helps someone else down the road.

@vsch vsch merged commit d14f119 into vsch:master Dec 17, 2018
@markkolich markkolich deleted the i/286 branch March 1, 2019 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants