Comments (3)
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.
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.
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)
- Passing Pandoc Arguments to YST HOT 1
- HDBC sqlite3 not installing with cabal HOT 3
- html5 output? HOT 1
- Possibility of having data within document HOT 1
- On new install, using demo site, yst fails on april_events.tex HOT 3
- yst.cabal is out of date, as it's no longer possible to install via "cabal install yst". HOT 4
- Please support XML data
- `cabal install yst` fails HOT 2
- storee HOT 1
- can give a sample site which is based on yst?
- Typo in readme
- Support custom `$nav$` rendering using templates HOT 4
- How can one implement dynamic pages. [feature request][discussion] HOT 4
- installation fails on nixos HOT 4
- yst won't install on Ubuntu 18.04 HOT 1
- Pandoc 2.9.* compatibility
- Installation fails HOT 5
- Failed to build yst - Ambiguous occurrence ‘defaultTimeLocale’ HOT 1
- yst fails to build with aeson >= 2
- Build fails: yst-0.7.1.3 from Cabal on MacOS -- "writeDocbook5" capitalization? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yst.