Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First line disappears when starting with single word and colon #688

Open
vicmortelmans opened this issue Mar 18, 2023 · 1 comment
Open
Labels

Comments

@vicmortelmans
Copy link

Hi,

when the first line of a slide starts with a single word and a colon, this line is not shown on the slide.

I suppose the reason is that it is processed as a slide property "name class background-image count template layout".

Since it's not unlikely for slide content to start with word and a colon, an improvement would be to limit the 'disappearing' to lines starting with the listed keywords. Other words have no effect at all on the slides, unless I'm mistaking?

Here's an example:

<!DOCTYPE html>
<html>
  <head>
    <title>Title</title>
    <meta charset="utf-8">
    <style>
      @import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
      @import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
      @import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

      body { font-family: 'Droid Serif'; }
      h1, h2, h3 {
        font-family: 'Yanone Kaffeesatz';
        font-weight: normal;
      }
      .remark-code, .remark-inline-code { font-family: 'Ubuntu Mono'; }
    </style>
  </head>
  <body>
    <textarea id="source">

class: center, middle

# Title

---

word: A slide starting with "word:".

The first line above is showing?

    </textarea>
    <script src="https://remarkjs.com/downloads/remark-latest.min.js">
    </script>
    <script>
      var slideshow = remark.create();
    </script>
  </body>
</html>
@tripu tripu added the bug label Mar 21, 2023
@tripu
Copy link
Collaborator

tripu commented Mar 21, 2023

A workaround: insert an invisible separator between the word and the colon.

Here's a demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants