Skip to content

Commit

Permalink
🎨 不登录时渲染 Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 18, 2017
1 parent 236cd4f commit 510708c
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1200,13 +1200,11 @@ public void updateArticle(final HTTPRequestContext context, final HttpServletReq
* @param request the specified http servlet request
* @param response the specified http servlet response
* @param context the specified http request context
* @throws Exception exception
*/
@RequestProcessing(value = "/markdown", method = HTTPRequestMethod.POST)
@Before(adviceClass = {StopwatchStartAdvice.class, LoginCheck.class})
@Before(adviceClass = StopwatchStartAdvice.class)
@After(adviceClass = StopwatchEndAdvice.class)
public void markdown2HTML(final HttpServletRequest request, final HttpServletResponse response, final HTTPRequestContext context)
throws Exception {
public void markdown2HTML(final HttpServletRequest request, final HttpServletResponse response, final HTTPRequestContext context) {
context.renderJSON(true);
String markdownText = request.getParameter("markdownText");
if (Strings.isEmptyOrNull(markdownText)) {
Expand Down

0 comments on commit 510708c

Please sign in to comment.