装饰类
大约 1 分钟
装饰类
装饰类的特点是将 html元素 转化为另一项 html元素。
大多数的装饰类只是在原有 html元素 的基础上,套一层具有特定css的外壳,以修改、增强原有的 html元素。所以叫做装饰类
md
id: "md",
name: "md",
process_param: ABConvert_IOEnum.text,
process_return: ABConvert_IOEnum.el,
text
id: "text",
name: "纯文本",
detail: "其实一般会更推荐用code()代替,那个更精确",
process_param: ABConvert_IOEnum.text,
process_return: ABConvert_IOEnum.el,
fold
id: "fold",
name: "折叠",
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
scroll
id: "scroll",
name: "滚动",
match: /^scroll(\((\d+)\))?(T)?$/,
default: "scroll(460)",
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
overfold
id: "overfold",
name: "超出折叠",
match: /^overfold(\((\d+)\))?$/,
default: "overfold(380)",
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
width
id: "width",
name: "宽度控制",
match: /^width\(((?:\d*\.?\d+(?:%|px|rem)?,\s*)*\d*\.?\d+(?:%|px|rem)?)\)$/,
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
addClass
id: "addClass",
name: "增加class",
detail: "给当前块增加一个类名",
match: /^addClass\((.*)\)$/,
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
addDiv
id: "addDiv",
name: "增加div和class",
detail: "给当前块增加一个父类,需要给这个父类一个类名",
match: /^addDiv\((.*)\)$/,
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
title
id: "title",
name: "标题",
match: /^#(.*)/,
detail: "若直接处理代码或表格块,则会有特殊风格",
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
transposition
id: "transposition",
name: "表格转置",
match: "transposition",
detail: "将表格进行转置,就像矩阵转置那样。该版本不支持有跨行跨列单元格",
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
transpose
id: "transpose",
name: "表格转置",
match: "trs",
detail: "将表格进行转置,就像矩阵转置那样。该版本支持有跨行跨列单元格",
process_param: ABConvert_IOEnum.el,
process_return: ABConvert_IOEnum.el,
链接到当前文件 0
没有文件链接到当前文件