Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Value with line break will not be transformed as expected #15

Closed
liangklfangl opened this issue Mar 21, 2018 · 1 comment
Closed

Value with line break will not be transformed as expected #15

liangklfangl opened this issue Mar 21, 2018 · 1 comment

Comments

@liangklfangl
Copy link

liangklfangl commented Mar 21, 2018

With following value, markdown-table will not be transformed as expected. Can you spare some time to give me some suggestions?

const rawData = [ [ '属性', '说明', '类型', '默认值' ],
  [ 'params',
    '',
    'object',
    '{\n  id: {\n    label: "标签ID",\n    type: "input"\n  },\n  categoryId: {\n    label: "分类",\n    type: "tree",\n    options: []\n  },\n  status: {\n    label: "状态",\n    type: "select",\n    options: {\n      0: "下线",\n      1: "上线"\n    }\n  },\n  startDay: {\n    label: "开始日期",\n    type: "date"\n  },\n  audit: {\n    label: "需要审核",\n    type: "select",\n    selectNoAll: true,\n    defaultValue: "0",\n    options: {\n      0: "否",\n      1: "是"\n    }\n  },\n  updateUser: {\n    label: "更新者",\n    type: "input",\n    placeholder: "请输入工号或花名搜索"\n  }\n}' ],
  [ 'paramValue', '', 'object', '' ],
  [ 'btns', '', 'array', '' ],
  [ 'onQuerySubmit', '', 'func', '' ],
  [ 'extraCpts', '', 'array', '' ],
  [ 'preRender', '', 'bool', '' ] ]
@wooorm
Copy link
Owner

wooorm commented May 11, 2018

Hi @liangklfangl! sorry for the late reply!

Markdown tables don’t support newlines in them. I believe you can use <br> elements though on GitHub. As they don’t work, I don’t think it’s needed to add support for them in this module!

@wooorm wooorm closed this as completed May 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants