In the new v2.2 API there are /render endpoints, such as /questions/{id}/answers/render
. What are these for? Testing applications without actually posting anything?
1 Answer
You can use these endpoints to provide a user with preview functionality, since you can get back the submitted content as Stack Exchange would render it without the user having to actually create something in the system.
I assume this is the primary use case.
-
Wouldn't it just be simpler to render the markdown locally? Commented Feb 14, 2014 at 17:27
-
Not necessarily, the SE Markdown engine has various modifications/extensions that might make delegating the rendering the more reliable solution.– Tim Stone ♦Commented Feb 14, 2014 at 18:06