Giter Club home page Giter Club logo

Comments (6)

yhatt avatar yhatt commented on June 30, 2024 4

Try --html option.

marp --html --pdf --allow-local-files Abstrakteklassen.md

Marp CLI would escape not-whitelisted HTML by default because of several security reason. Refer to: CVE-2017-2239, marp-team/marp-core#9, marp-team/marp-core#26, yhatt/marp#259

from marp-cli.

yhatt avatar yhatt commented on June 30, 2024 1

You are right: Currently marp-team have not provide an editor. I have not the time to develop a editor because currently I focus to the minimum viable product, that is the conversion from Markdown to slide deck.

At the moment, the most similar usage is the combination with Marp CLI's preview mode (marp -p) and your favorite editor, Vim, Emacs, Atom, VSCode, etc...

In future, marp-team/marp-web (In development: https://web.marp.app/) would become a new editor. Sometime I'm going to create blog and explain about the whole of our project clearly. (marp-team/marp#11) Please excuse my lack of explanation!

from marp-cli.

cansik avatar cansik commented on June 30, 2024

Ok nice, that worked...but the rendered output is not the same as with Marp. The align="right" is not interpreted.

## Abstrakte Klassen - Store

<img src="diagrams/store_oop.svg" width="600" align="right">

- Alle Klassen können **instanziert** werden
- Die Kindklassen **müssen** keine Funktion überschreiben

Article a1 = new Article(23, "Test1");
Article a2 = new Book(12, "Test2");

Gets rendered like this:

image

from marp-cli.

yhatt avatar yhatt commented on June 30, 2024

In the complete re-written tools released by marp-team, included Marp CLI, you should not expect the exactly same result with yhatt/marp. In this case, yhatt/marp's older Chromium has wrong rendering.

According to W3C, the floating element in flexbox is ignored. Marp slide has consisted of flex container, and the floating by align=right should be ignored.

ref: https://stackoverflow.com/a/39194800

Instead of align=right, you can use split background by ![bg right](bg.jpg)

![bg right w:600](diagrams/store_oop.svg)

from marp-cli.

cansik avatar cansik commented on June 30, 2024

Ok, I got it now...I was a bit confused with the difference between marp-cli, marpit, marpcore, marp, and yhatt/marp.

Just that I am not missing something: There is currently no marp editor for the new version, which works like yhatt/marp?

from marp-cli.

cansik avatar cansik commented on June 30, 2024

Thanks for the clarification (: and great piece of software! 👍

from marp-cli.

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.