Git Product home page Git Product logo

Comments (4)

sergiocorreia avatar sergiocorreia commented on August 22, 2024

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.

ekiim avatar ekiim commented on August 22, 2024

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.

sergiocorreia avatar sergiocorreia commented on August 22, 2024

Can you give me an example of how the pseudo markup should look like, ideally?

from panflute.

ekiim avatar ekiim commented on August 22, 2024

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)

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.