'use strict';
import { apiOkResponse } from '../../meta/server/web/responses.js';
import { convertMarkdownToHTML } from './markdown.js';
import { parseJsonBodyFromRequest } from '../../../fd-toolbox/lib/utils.js';

var __defProp=Object['defineProperty'],__name=(_0x567c61,_0x46fbc7)=>__defProp(_0x567c61,'name',{'value':_0x46fbc7,'configurable':!![]});async function markdownPostRoute(_0x3a5811){const {markdown:_0x27bf05}=await parseJsonBodyFromRequest(_0x3a5811),_0x72323c={'html':convertMarkdownToHTML(_0x27bf05)};return apiOkResponse(_0x72323c);}__name(markdownPostRoute,'markdownPostRoute');

export { markdownPostRoute };
