Coder Social home page Coder Social logo

theia-asciidoc-extension's Introduction

theia-asciidoc-extension's People

Contributors

afroozeh avatar rdmueller avatar svenefftinge avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

theia-asciidoc-extension's Issues

Support the asciidoctor-diagram extension

Asciidoctor supports diagrams using the block syntax, e.g.
[plantuml]
....
here is the PlantUML diagram code
....
But this is not supported by the asciidoctor extension's backend.

If you install the asciidoctor-diagram extension in the docker file using "gem install asciidoctor-diagram" and use the require option (-r): -r asciidoctor-diagram in the shell call, diagram images should be generated (in the same folder as html file) and could be served by the backend.

Preview doesn't work in gitpod.io

I've opened an .adoc-File and got the following error message in the preview:

/bin/sh: 1: asciidoctor: not found

I tried to open this extension in an gitpod, and got the following error message:

image

I'd expected the preview to work in a normal GitPod IDE

Send errors and warnings as diagnostics

Currently, we are rendering any errors and warnings in the preview.
We should connect a language service that translates them into diagnostics and runs even without previews being open.

includes do not work

great work! The preview already looks great!

while testing the extension, I noticed two things with includes:

include::test.adoc[]
  1. this throws an error and doesn't render the document at all. Other implementations just render the error instead of the included file.

The error is

asciidoctor: ERROR: contents.adoc: line xxx: include file not found: /tmp/asciidoc-hhY0dg/test.adoc
  1. as you can see, it seem that the error is because the extension tries to find the document to be included in the /tmp folder. This might be because include files are document relative... so if you render the main document in /tmp, it will also search the included files there.

If I rewrite the include from above as

include::/workspace/theia-asciidoc-extension/test.adoc[]

everything works fine

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.