Comments (6)
@jgm Sure. It is a Vite app using the Svelte framework.
The steps to build is as follows:
- Install Node.js (version 16 or above).
- Run
corepack enable
in a terminal to make theyarn
command available. - Run
yarn install
to install the project dependencies. - Run
yarn build
to build the project. - The files are in
dist
folder.
If you prefer not to install software, a cloud-based approach is available:
- Open the repo in Gitpod: https://gitpod.io/#https://github.com/dtinth/djot-playground (Gitpod will auto-detect the project build setup and install the dependencies automatically.)
- Open a new terminal and type
yarn build
to generate the files. - Right click on the
dist
folder and select "Download" to download the build output.
Hope it helps.
from djot.
I will try to make one available. Of course it would be easier if we had a JavaScript version. I wonder how far one could get with automated Lua -> JS converters?
from djot.
I have no lua experience so I don’t know the ecosystem. However, as they’re somewhat similar, and that I’d imagine more folks would need lua -> js, something probably exists? Or to WASM? https://github.com/ceifa/wasmoon or https://medium.com/@imwithye/port-lua-to-web-environment-using-webassembly-3144a8ac000e?
I’m also contemplating whether it is possible to have a feature flag in my markdown parsers to support djot or commonmark. It mostly depends on how big the difference is, whether that’s feasible. But that might work. I don’t plan on working on this any time soon though.
from djot.
Djot looks interesting!
I whipped up a little playground here: https://djot-playground-poc.vercel.app/
It loads up Djot source code directly from GitHub main branch and runs it through wasmoon. However, there is a hardcoded list of files that must be kept up-to-date. I have no intention to maintain the playground, so please feel free to fork. Hope it’s useful!
from djot.
@dtinth that's excellent! Before seeing this, I managed to get something working with emscripten. But yours might be a better approach (the code looks simpler), and if so I'll fork it. Thank you.
from djot.
@dtinth can you explain how to compile your code into something I could put on a web server? I don't know much about the JS ecosystem.
from djot.
Related Issues (20)
- Allow Unicode symbols for list items such as •, ◦, ‣ HOT 3
- Explicit admonition types HOT 31
- Blockquote attribution / citation HOT 1
- Inclusion of other djot documents HOT 18
- Tight list and attributes HOT 1
- Task list item should allow for non-Latin checkmark HOT 4
- Limit numbers in ordered list markers HOT 5
- `[text][]` is shorthand for `[text][text]` – should `[text]()` mean `[text](text)`? HOT 3
- Footnote labels may contain spaces but not newlines
- Inline container precedence with attributes HOT 2
- Document implicit section behavior HOT 6
- Relax disallowing multiple words in `code block` / `div` first line? HOT 12
- Introduce leaf div (with `::`)
- Make `<section/>` wrappers optional (for HTML) HOT 4
- Normalize names of inline/block flavors HOT 2
- Canonical large-ish djot document (and related pandoc issues) HOT 5
- Parsing ambiguity: bracketed content followed by footnote? HOT 4
- Syntax for ruby (<ruby>) HOT 1
- Block level referencing and reuse syntax HOT 1
- URLs with parenthesis break parser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djot.