npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

scholae-dicimus

v0.9.1

Published

Presenting markdown files in a browser for teaching

Downloads

5

Readme

scholae-dicimus

Presenting markdown files in a browser for teaching

NPM version

Forked of from md-fileserver with focus on displaying markdown files for presentations.

Starts a local server to render "markdown" files within your browser:

  • Runs on localhost:4000
  • Supports Markdown Syntax with GFM.
  • Markdown rendering based on markdown-it.
    Enabled Plugins for:
    • Emojis
    • Task lists
    • Footnotes
    • KaTeX
  • Includes markedpp as preprocessor.
  • Supports syntax highlighting using highlight.js
  • Include speaker notes with <x-note>
  • Add Whiteboard for drawings with <x-whiteboard>
  • Open Presentation Mode with F5 to show presentation on external display with synchronous scrolling and drawing.
  • Switch to speaker mode by double-click into browser window. The other window(s) will switch to presentation mode which mutes <x-note> and <remark> for listeners.
  • For supported markdown Syntax and additional tags see Cheatsheet.
  • Automatic update in browser after saving edited file. (Tested on Linux, MacOS, Windows)

Table of Contents

Installation

npm install -g scholae-dicimus

Usage

browser oddities

For Chrome on Windows 10 you'll need to disable "Direct Manipulation Stylus". Open Chrome and enter chrome://flags/#direct-manipulation-stylus to disable flag. Otherwise Stylus actions interfere with scroll events which does not allow painting.

Start the Local Server

In your terminal type:

scholae

Note: The local server can only be reached from your local computer on port 4000. Any remote access from other computers to your files is denied.

Open a markdown file

Open http://localhost:4000 in your browser and navigate to the markdown file.

Alternatively type in your terminal:

scholae <file>

This will open the default browser with the processed markdown file.

Configuration

scholae /config

Cheatsheet

scholae test/cheatsheet.md

Cheatsheet

Personalisation

In config.js you can change several settings to fit your needs. These include:

  • Browser: Default browser of MacOS, Linux or Windows is used.
  • Markdown options: Change the options how markdown-it processes your markdown files.
  • Markdown PP options: Change the options how markedpp pre-processes your markdown files.

Install personalized version:

  1. Clone this repo
    git clone --depth 2 https://gitlab.com/commenthol/scholae-dicimus.git
    cd scholae-dicimus
  2. Make your changes in ./config.js
  3. Install with npm i -g from same folder.
    If there are issues with installing you'll need to uninstall first with npm un -g

Contribution

If you contribute code to this project, you are implicitly allowing your code to be distributed under the MIT license. You are also implicitly verifying that all code is your original work.

License

Copyright (c) 2019-present commenthol
Software is released under MIT License.

Bundled fonts from Font Awesome Free 5.x.x by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)

Bundled fonts from KaTex by Khan Academy - https://github.com/Khan/KaTeX License - https://github.com/Khan/KaTeX/LICENSE.txt (Fonts: SIL OFL 1.1, Code: MIT License)

References