Git Product home page Git Product logo

Comments (3)

jgm avatar jgm commented on September 26, 2024

This is the expected behavior. The templates are all applied before pandoc is used to transform the markdown. So pandoc is seeing this:

<!-- begin -->

# Heading 1

Lorem ipsur

# Heading 2

Lorem ipsur

<!-- end -->

It has no way of knowing that the <!-- end --> is not supposed to be in the section.
Maybe what you're expecting is for pandoc to be run individually for each template. That's not what happens, and in general, it's not what you want (think about footnotes, table of contents, etc.).

If you have a case where the div doesn't get closed at all, that would be a bug. But you haven't provided such a case, so I can't comment on that.

Also, please see http://code.google.com/p/pandoc/issues/detail?id=230.
Have you compiled your yst against the latest version of pandoc?

from yst.

claes avatar claes commented on September 26, 2024

Yes I thought that pandoc was only run on markdown templates, and that a template with suffix ".html.st" would be left "unprocessed". But I see now also the effect of markdown syntax in this template. Perhaps I need to do this differently, I haven't used the "layout" field for example.

I installed yst using cabal this weekend as in the installation instructions. My pandoc version is 1.6.

from yst.

claes avatar claes commented on September 26, 2024

Regarding issue 230 above, I don't mind the pandoc behavior (the div-wrapping). I think it is pretty convenient in itself. I am just trying to figure out how to adjust my layouts to work with it. If it would not be the div issue, it would be something else. Now when I realize that my html template is parsed by pandoc I need to experiment more to learn how it works.

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.