Giter Club home page Giter Club logo

Comments (4)

jgm avatar jgm commented on August 24, 2024

Sorry, I can't reproduce this. (Tried adding a couple blank lines to index.st in the demo site, then recompiling, and everything is fine.) Please give more detailed instructions on how to reproduce the problem.

from yst.

ehud avatar ehud commented on August 24, 2024

Sorry. I guess I was too quick to diagnose, but it seemed repeatable.. It seems like it also depends on spaces in the beginning of the line, and other factors, so perhaps this is the expected behavior. Here is an example (this is the index.st file).

<span class="style1">Here I come to save the day</span><br>

    <p>Mighty mouse is on his way!<br>

# Welcome

Have a nice day!

The mighty mouse line appears as HTML on the rendered page (as a code block).
If I remove the LF between the two HTML lines OR begin that line with less than four spaces, the problem disappears. I guess the four space is due to markdown identifying the line as belonging to a code block, which does not happen when the parser thinks it is inside an HTML block, which for some reason it ends on the LF. Or something like that...

(I am on Windows, with the release version, without the patch from yesterday)

from yst.

jgm avatar jgm commented on August 24, 2024

I'm not sure I see the problem. In markdown, a block separated from surrounding material by whitespace and indented four spaces or one tab is supposed to appear as a code block. index.st is a markdown template, so what you're seeing is perfectly correct. Just unindent the <p>...</p> if you don't want it as a code block.

from yst.

ehud avatar ehud commented on August 24, 2024

I agree. I failed to realized that the LF was significant for the code block to be recognized. My bad.

from yst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.