Skip to content

Instantly share code, notes, and snippets.

@SteveBarnett
Created December 17, 2015 11:55
Show Gist options
  • Save SteveBarnett/674484f24c24a6cc7ba4 to your computer and use it in GitHub Desktop.
Save SteveBarnett/674484f24c24a6cc7ba4 to your computer and use it in GitHub Desktop.
Notion generated markup
<div style="margin-left: 0em">
<ul>
<li>Finish the tutorial</li>
</ul>
</div>
<div style="margin-left: 0em">
<ul>
<li>Drag in an image or file from your desktop</li>
</ul>
</div>
<div style="margin-left: 0em">
<ul>
<li>Create a new page</li>
</ul>
</div>
<div style="margin-left: 1em">
<ul>
<li>Share the new page with others</li>
</ul>
</div>
<div style="margin-left: 0em">
<ul>
<li>Learn the shortcuts</li>
</ul>
</div>
<ul>
<li>Finish the tutorial</li>
<li>Drag in an image or file from your desktop</li>
<li>Create a new page
<ul>
<li>Share the new page with others</li>
</ul>
</li>
<li>Learn the shortcuts</li>
</ul>
@SteveBarnett
Copy link
Author

Notion collaborative document editor is very snazzy, but the export option needs some work. I had a look at a simple unordered list.

The export creates a div, ul, and li for each list item. This breaks the semantics of having things in a list in the first place: each li is treated as a separate list.

The export uses inline styles to show a nested list item. This breaks the link between the nested li and the parent li.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment