stencila / encoda

↔️ A format converter for Stencila documents
https://stencila.github.io/encoda/
Apache License 2.0
35 stars 9 forks source link

Support header on first line of Markdown as title #147

Open rgaiacs opened 5 years ago

rgaiacs commented 5 years ago

When

---
title: Title goes here
---

Some text.

is converted to Word, we have

title-as-yaml

But when

# Title goes here

Some text.

is convert to Word, we have

title

As reported in stencila/encoda#92, users might expect that the output for both Markdown documents will be the same.

nokome commented 4 years ago

Just for reference, this is related to this discussion and the interpretation of heading depths and the generation of HTML5 document outlines by the html codec. All needs further thought but a simple hueristic would be: