Inject code snippets into markdown fragments