Comments (9)
Just to keep you informed: I started to work on the asciidoctor parser.
The HTML generator is implemented with a trait, so you should be able to change the result the way you want.
Please note that the API will change as I'm experimenting with different designs.
from zola.
Markdown (even the extended variants) is relatively limited.
I think supporting at least one more complete format is preferable, considering the goal of the project is static site generation, rather than just a blogging platform.
For example, I am also a writer, and I write in asciidoc(tor), since that format is the best suited for it (it's actually compatible with docbook, making it not too far from latex without tex commands) - if I wanted to publish readable versions on a website, I simply couldn't use gutenberg.
For project websites, I find asciidoc also helps with writing more complete documentation, once you outgrow basic markdown - similar issue here.
All of this is basically to say that adoc support is a dealbreaker for me, though once that's in I doubt anything further would be required (since gutenberg would be essentially on feature-parity with other generators - in terms of what one can actually do with it, rather than sheer number of entries).
from zola.
I wouldn't mind addind asciidoc support (but only asciidoc, I don't want to maintain n input) but a few things are required first:
- Rewrite the current markdown parser to separate the shortcodes from the markdown (I'm going to work on that next myself)
- Have a good, documented working asciidoc crate. @antoyo started one but it would need to be finished
- Someone to implement the asciidoc support in Gutenberg. It shouldn't be too hard after 1
from zola.
Hi,
It's very unlikely that I will add support for more input formats in the near future for a few reasons:
- no crate for asciidoc and the only crate for rst doesn't seem finished (no docs too) from a quick research on crates.io
- if there were crates for them, I'd still need to be able to hook into the parser like I'm doing with
pulldown_cmark
(or fork them) for shortcodes, relative links etc - very low priority for me
I see the appeal but I don't think that feature will be coming anytime soon (if it ever comes), especially since it first requires other crates to be written first. I might consider it once gutenberg is more mature but definitely not now.
from zola.
I am interested in writing a crate for parsing asciidoctor.
Do I need to write it in a specific way so that you can easily integrate it in gutenberg?
from zola.
The way https://github.com/google/pulldown-cmark works very well.
I can easily extend the parser like in https://github.com/Keats/gutenberg/blob/master/src/markdown.rs#L121. Basically if I can hook into the renderer it should be ok
Keep in mind though that inputs other than markdown are not going to be added until all the important features are nailed: i18n, pagination, deploy and probably some stuff I haven't thought of yet so that's a few months away at best.
from zola.
Ok, I'll wait a couple of weeks before writing such a parser, then.
from zola.
Just so you know, I haven't worked on my parser for a long time as I work on other projects.
If anyone is inrested to continue it, please tell me.
from zola.
I moved the feature request to the forum: https://zola.discourse.group/t/alternative-input-formats/76
from zola.
Related Issues (20)
- Compilation failure: `ahash`: unknown feature `stdsimd` HOT 4
- Can't build on v0.19.0: Read-only file system HOT 3
- Zola 0.19 no longer builds/serves if I enable feeds. HOT 2
- Zola 0.19 does not detect changes anymore HOT 19
- Zola 0.19 config.generate_feeds not accessible from template files. HOT 2
- Zola 0.19.0 doesn't accept all valid YAML dates HOT 3
- Choose template based on path HOT 2
- Alternative Content Views (Summary, List, ..., like in Hugo) HOT 3
- Failing zola build with option: "external_links_target_blank = true" HOT 3
- "zola serve" doesn't detect any change HOT 3
- zola serve - automatic firefox refresh leads to `Not Found` HOT 7
- Have root being a page and not a section HOT 1
- Permission denied (os error 13) during build HOT 2
- In the main config, ignored_content has misleading examples and globbing doesn't work as expected HOT 1
- How do I make use of throw? HOT 2
- Unknown field `date` HOT 3
- Unable to generate RSS feed HOT 1
- Zola 0.19.1 broke `get_url` HOT 3
- `page.summary` only works when isolated on a newline. HOT 4
- Zola 0.19 and ViteJs don't go together well? HOT 15
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 zola.