Some (valid) tags not being returned [OutlineGroupNode is not supported ]

你说的曾经没有我的故事 提交于 2019-12-24 06:17:09

问题


The OneNote API is not returning supported tags in some lists.

It seems to be an issue with complex bulleted lists; we just see OutlineGroupNode is not supported in the returned markup.

The docs give some guidelines on how to write out tags to lists, but there's no mention of the API not returning any supported tags in certain situations.

Please see the below example, what rules is this list breaking?

What constitutes an OutlineGroupNode?

Some clarity over what pre-existing list/tag content is supported would be appreciated please.

Thanks

The resulting markup is:

<snip>

<!-- OutlineGroupNode is not supported --><br>

<ul>
  <li>
    <p lang="en-GB" style="margin-top:0pt;margin-bottom:0pt">
    Top level no tag</p>

    <ul>
      <li style="list-style-type:circle"><span lang="en-GB"
      data-tag="to-do">Sub level with tag</span></li>

      <li style="list-style-type:circle"><span lang="en-GB">Sub
      level no tag</span></li>
    </ul>
  </li>

  <li style="list-style: none"><br></li>
</ul>

</snip>

回答1:


4 days later it now works; no code changes on my part.

The complex list is returned correctly. No HTML comment in the markup mentioning OutlineGroupNode.

I can only assume that something has changed under the API hood.



来源:https://stackoverflow.com/questions/37399430/some-valid-tags-not-being-returned-outlinegroupnode-is-not-supported

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!