import RenderingState from "./state" ; param { Content } param { Object } options return { string } function render ( syntax , content , options ) { const state = new RenderingState ( syntax , options ) ; const entryRule = syntax . getEntryRule ( ) ; const token = content . getToken ( ) ; return entryRule . onToken ( state , token ) ; } param { Syntax } syntax param { List < Token > } tokens return { string } function renderAsInline ( syntax , tokens ) { const state = new RenderingState ( syntax ) ; return state . renderAsInline ( tokens ) ; } render . asInline = renderAsInline ; export default render ;