Closed tjob-slack closed 2 years ago
云函数调用服务端解析,发现代码高亮、echart、图形等都不支持。 是不提供这些服务吗? 小程序云函数如下: ` // 云函数入口文件 const cloud = require('wx-server-sdk')
const Towxml = require('towxml');
const towxml = new Towxml();
cloud.init()
// 云函数入口函数 exports.main = async (event, context) => { const { func, type, content } = event
let res if (func === 'parse') { if (type === 'markdown') {
res = await towxml.toJson(content || '', 'markdown'); } else { res = await towxml.toJson(content || '', 'html'); }
} return { data: res } }
`
理论上是支持的。需要在 config 中全部打开并构建。
云函数调用服务端解析,发现代码高亮、echart、图形等都不支持。 是不提供这些服务吗? 小程序云函数如下: ` // 云函数入口文件 const cloud = require('wx-server-sdk')
const Towxml = require('towxml');
const towxml = new Towxml();
cloud.init()
// 云函数入口函数 exports.main = async (event, context) => { const { func, type, content } = event
let res if (func === 'parse') { if (type === 'markdown') {
} return { data: res } }
`