vivliostyle / vfm

⬇️ Open and extendable Markdown syntax and toolchain.
https://vivliostyle.github.io/vfm/#/vfm
Other
69 stars 12 forks source link

The title value from the first heading should not include the attributes notation `{...}` #134

Closed MurakamiShinyu closed 2 years ago

MurakamiShinyu commented 2 years ago

Issue Details

$ echo '# Foo {.foo}' | vfm
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Foo {.foo}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <section class="level1 foo" id="foo">
      <h1 class="foo">Foo</h1>
    </section>
  </body>
</html>

In this result, the title <title>Foo {.foo}</title> is not good. Please remove the attributes notation {.foo}.