Giter VIP home page Giter VIP logo

rimu's People

Contributors

srackham avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rimu's Issues

Installed executable does nothing and silently exits

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

Deno version 0.41.0 fails tests

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)
  :
  :

Add support for YAML metadata blocks

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.

Comparison to djot

I wonder where rimu stands compared to djot.

Any insights (features-wise, implementations-wise, etc.)?

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.