Coder Social home page Coder Social logo

thom4parisot / asciidoctor-extension-interactive-runner Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 1.13 MB

Turn your Asciidoc code listings into interactive playgrounds in web browsers.

Home Page: https://npmjs.com/asciidoctor-extension-interactive-runner

License: MIT License

JavaScript 89.32% CSS 10.68%
asciidoc interactive-playgrounds runkit-runner

asciidoctor-extension-interactive-runner's People

Contributors

ggrossetie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asciidoctor-extension-interactive-runner's Issues

Miss: a listingblock within an admonitionblock

[TIP]
.[RemarquePreTitre]#Raccourci# Variables `+__filename+` et `+__dirname+`
====
`+__filename+` est une chaîne de caractères faisant référence au fichier courant. +
`+__dirname+` fait référence au répertoire du fichier courant.

[source%interactive,javascript]
.dirname-filename.js
----
include::{sourceDir}/dirname-filename.js[]
----
<1> Affiche `/.../chapter-04/examples/dirname-filename.js`.
<2> Affiche `true` — ça ne serait pas un _raccourci_ sinon ;-).
<3> Affiche `/.../chapter-04/examples`.

Ces variables sont utiles pour opérer sur
des _chemins relatifs au fichier courant_.

====

Support Runkit `endpoint`

[source%interactive,endpoint="server"]
----
...
----

Append this to the source:

exports.endpoint = server.listeners('request').pop()

And add mode: 'endpoint' to the notebook.


from

image

to

image

then

image

TypeError: el.classList is undefined

For an unknown reason so far, the getParent can bubble up to the document which has no classList attribute.

It would be good to investigate why it happens.

image

The problem was encountered with Firefox.

The problem happened on an element which was not interactive but was a JavaScript listing.

Register Extensions manner/syntax on the Asciidoctor.js docmentation seems to be updated

Hi, thanks for the nice extension.

Register Extensions manner/syntax on the Asciidoctor.js docmentation seems to be updated;

https://asciidoctor-docs.netlify.com/asciidoctor.js/extend/extensions/tree-processor/

and, the npm module and the Usage example looks incompatible to the official instruction.

I tried to modify by myself, and pull-request, but for some reason, it does not work so far, so I would like request to update to the compatible extenstion to the latest version of Asciidoctor.js.

Thanks!!

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.