Comments (5)
It looks like maybe the frame attribute classes are getting removed from first level headings at line 219
:
Lines 210 to 222 in a9eae71
I don't know enough about Lua to suggest a fix, but I think any solution would probably need to take into account lines 230-238 as well:
Lines 228 to 238 in a9eae71
from pandoc-ling.
The change in my fork seems to work? Again, I don't know much Lua, but the changes I made:
- Add a "restart" class to the header instead of overwriting existing ones
- Only remove the inserted "restart" class when it's done instead of existing classes.
The removal code is based on the example for minted here:
Running on the modified filter on my example maintains the beamer frame attributes, and I tried it with a few examples from the readme here that didn't seem to break anything. But, again, I don't know much about Lua. :)
from pandoc-ling.
I just realized I probably broke the intent of tracking the headers by accidental removing the check for "restart". :)
from pandoc-ling.
I did some further tests, and I guess I didn't actually seem to break it. But something doesn't seem quite right about skipping the check.
from pandoc-ling.
Ok. I figured out the reason it still worked was because only the first level headers were being converted to divs.
The second commit in my fork (somelinguist@4e4da4e) adds back the check and is probably more efficient than my first attempt. It just inserts the "restart" class at index 1 so that it's easy to check later and remove.
from pandoc-ling.
Related Issues (12)
- Beamer slides (PDF) show linguistic examples in a overt table HOT 8
- Subscripts in the source line of an interlinear example are not properly rendered HOT 2
- Question particle/marker `Q` is not rendered HOT 2
- Option to output glosses without example number
- Grammaticality judgements not aligned in interlinear examples when targeting Linguex HOT 1
- Links for cross-references with explicit an ID don't work with HTML output HOT 1
- error running filter with recent pandoc HOT 2
- One-line examples with a judgement are unprocessible when producing an HTML file HOT 2
- Escape meta characters of LaTeX in "judgeOffset" to avoid the compilation failure HOT 4
- header-includes in the YAML header causes an error when exporting to LaTeX or pdf HOT 1
- Interlinear examples without free translation HOT 2
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 pandoc-ling.