Comments (4)
Feel free to send a PR.
When writing panflute, at some point I thought it might be good to allow attributes on all elements. At the end I decided against it to stay close to what Pandoc does (so we only allow attributes in elements that can have an attribute in Pandoc).
That said, I can think of cases where you want to want to add attributes, so I'm open to a PR. The only issue is that, as a user, you might need to remove the attributes before the data gets dumped back to Pandoc.
from panflute.
I checked with the pandoc, API, that wouldn't work...
Telling you quickly what I'm trying to achieve is to make a theorem-like environment, and have conditional rendering depending on the format...
What I'll end up doing is tearing apart the definition List, (on the filter), and turning it in to segments surrounded by RawInline
so I can squeeze in the corresponding tags, my main need is
Pseudo-Markdown (this weird syntax I want to make filters for)
Pseudo-MArkdown -> HTML
Pseudo-MArkdown -> Markdown (Readable Markdown)
Pseudo-MArkdown -> Latex
So by surrounding the tags, with the corresponding tags in function of the class in the attribute block I'm implementing, I'll end up having the final render I need.
from panflute.
Can you give me an example of how the pseudo markup should look like, ideally?
from panflute.
This is the first concern I have, later, I'll try and put tables, figures, and different kinds of pictures with pandoc, In a way that if fitted to the need, (but I already saw pandoc behaves as expected in does cases)
The idea is to have many kinds of definitions, for theorems, math and languages definitions, corollary, notes, remarks, and so on, that structurally are similar.
Theorem {#id .class-one .class-two data-set="theorems"}
: This is the body of the definition with some formulas as follows $x^2 = \int_a^b f(t)dt$ and a
longer formula as $$ \sum_{n=0}^{\infty} \frac{1}{n}$$
from panflute.
Related Issues (20)
- Creating a Panflute filter that interacts with other filters HOT 1
- Reimplement the panflute.stringify with native pandoc writer HOT 2
- Unable to get Panflute filter comments.py to work correctly HOT 1
- Add comparison method to Element class? HOT 2
- Compatibility with Pandoc 2.18 HOT 3
- Using panflute as a writer rather than a filter HOT 8
- Stringifying the terms of a definition list results in AttributeError HOT 7
- Hwo to use the span method? HOT 1
- Applying panflute filter multiple times generates an unexpected result
- Can't convert markdown style citations to LaTeX style using panflute filter HOT 5
- Navigation with next and prev unstable HOT 3
- Add space before footnote in stringify function HOT 4
- Is there solution to add custom style for lists with panflute ? HOT 2
- Avoid side-effects in walk
- Figure, Table: to_json() crashes if caption is None HOT 1
- Reading the value of `--resource-path` inside a panflute filter ? HOT 3
- Trying to create new metadata from metadata
- Removal of click dependency HOT 3
- Installing globally on Ubuntu HOT 2
- Consider different check for RawInline formats?
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 panflute.