Code Monkey home page Code Monkey logo

ob-d2's People

Contributors

xcapaldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

emacsmirror

ob-d2's Issues

Error (use-package): Cannot load ob-d2 Disable showing Disable logging

I use GNU Emacs 28.2 and d2 0.2.2 on GNU/Linux arch

I put ob-d2.el in ~/.emacs.d/manual/ and added the following line to my init:

(use-package ob-d2
  :ensure nil
  :load-path "~/.emacs.d/manual/ob-d2.el")

I have the following message when I load Emacs:
Error (use-package): Cannot load ob-d2 Disable showing Disable logging

[Feature request] Add an option to define picture display size

When I compile a d2 block, for example:

#+begin_src d2 :file refiling.png :flags -t 4 -l elk 
  direction: right
  "leftbox1" -> "rightbox1": Comment 1
  "leftbox2" -> "rightbox2": Comment 2
  "leftbox3" -> "rightbox3": Comment 3
#+end_src

The size of the displayed PNG is much too big in my buffer. Also, when I export the org buffer to HTML, the picture size is too big.

It would be useful to be able to define the picture size.

Flags don't seem to work?

I am using Doom Emacs, and I can get an image rendered, however, the :flags don't seem to be used by d2 when rendering.

For example, using the :flags example from the README:

image

The render I get is not the same as what is shown in the README.

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.