vivliostyle / vfm

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

fix: remove heading attributes notation on page title #148

Closed ayatkyo closed 2 years ago

ayatkyo commented 2 years ago

This PR will fix #134 issue

Before

$ 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>

After

$ echo "# Foo {.foo}" | vfm
<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <title>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>

This issue also affecting generated toc in vivliostyle-cli. Generated toc before image

Generated toc after image

CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

akabekobeko commented 2 years ago

@ayatkyo Thanks!