tigion / nvim-asciidoc-preview Goto Github PK
View Code? Open in Web Editor NEWA simple AsciiDoc preview while editing AsciiDoc documents in Neovim
License: MIT License
A simple AsciiDoc preview while editing AsciiDoc documents in Neovim
License: MIT License
Issue:
If you have a diagram, in my case mermaid, that you'd like to preview, it only renders it once. Any updates are not reflected in the rendered graph.
What i tried:
I tried changing the browser, changing the server converter from js to cmd and other similar things, like disabling the browser cache. None worked.
System:
Steps to reproduce
Use an example document like the following, preview it, then make changes to the graph. You will see that the text version updates, but not the rendered graph.
= Diagram Mermaid Sample
.Mermaid graph
[source,zsh]
----
graph TD
A[Christmas] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[Car]
D --> E
D --> E
----
Hi,
just recently I started to get this message in browser when I start the preview:
๐ด Server is waiting ... currently is no AsciiDoc file to preview!
Tried to remove and install the plug again, but result is the same.
Any hint on why this is happening?
Thanks
:checkhealth asciidoc-preview
==============================================================================
asciidoc-preview: require("asciidoc-preview.health").check()
nvim-asciidoc-preview ~
Asciidoctor (optional) ~
converter = 'js'
) is used.(I cannot find the file ~/.local/state/nvim/nvim-asciidoc-preview-server.log
)
Flake for tests:
REQUIRED:
With flakes enabled
nix run github:jirafey/nvim-flake
if you have git cloned the repo
-> cd to the repo
and nix run
Legacy (may seem like it stalls)
nix-shell -p '(import (builtins.fetchTarball "https://github.com/jirafey/nvim-flake/archive/master.tar.gz")).packages.${builtins.currentSystem}.default' --run nvim
If you need the link: https://github.com/jirafey/nvim-flake
Nvim version:
Currently, the preview updates when I save the file. Can you please make it so that it will update when I type? Without the need to save?
Thank you :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.