srackham / rimu Goto Github PK
View Code? Open in Web Editor NEWReadable text to HTML markup language
License: MIT License
Readable text to HTML markup language
License: MIT License
If installed from Github the executable does nothing and returns immediately.
But bizarrely, if it is installed from deno.land it works:
$ deno install -A -f --name rimudeno https://deno.land/x/[email protected]/src/deno/rimuc.ts
✅ Successfully installed rimudeno
/home/srackham/.deno/bin/rimudeno
$ /home/srackham/.deno/bin/rimudeno --version
11.1.12
Installing from Github the bundled executable command does nothing, it simply returns immediately:
$ deno install -f -A --name rimudeno https://raw.githubusercontent.com/srackham/rimu/11.1.12/src/deno/rimuc.ts
✅ Successfully installed rimudeno
/home/srackham/.deno/bin/rimudeno
$ /home/srackham/.deno/bin/rimudeno
<------ Blank line instead of version number
$
I suspect this behavior is linked to a Deno 1.4.0 install command regression: denoland/deno#7455
There's a bug in Deno 0.41.0 that stops the Deno version of th rimuc
CLI from working with stdin
(denoland/deno#4789). See also #1
$ deno --version
deno 0.41.0
v8 8.2.308
typescript 3.8.3
$ deno -A Drakefile.ts test
test started
running 3 tests
test rimucTest ... platform: deno, node
FAILED (68ms)
:
:
Hi, thanks for releasing this library! Pandoc's yaml_metadata_block
extension allows you to insert front matter at the top of a Markdown document in the form of an arbitrary YAML object delimited by ---
. It would be useful for Rimu also to support this.
YAML is implemented in std/encoding
, so I was able to put together a rough patch pretty easily. However, it breaks the API by awkwardly changing the type of the exported render
function to return a [metadata, html]
tuple. The name render
suggests that Rimu is not intended to do anything other than consume Markdown and emit HTML.
Let me know if you're interested in a more comprehensive PR that implements this properly, perhaps by exporting a metadata
function. Otherwise, I'm happy to implement this in my own code, and you can just close this issue as a record of the fact that YAML metadata blocks are out of scope for Rimu.
I wonder where rimu stands compared to djot.
Any insights (features-wise, implementations-wise, etc.)?
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.