OlivierJM / previewer

Preview json file for https://github.com/TinasheMzondiwa/cis-hymnals

Home Page:https://previewer-psi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Previewer

This is little utility to help preview hymns in different formats, currently we support markdown and html. It also allows for editing the hymns with a WYSIWYG editor.

Demo

https://previewer-psi.vercel.app

Run Locally

Clone the project

  git clone https://github.com/OlivierJM/previewer.git

Go to the project directory

  cd previewer

Install dependencies

  npm install

Start the dev server

  npm run dev

Features

  • Song listing
  • Song Preview
  • Song editing
  • HTML/Markdown
  • Upload/Url JSON preview

Supported file structure

Currently we support JSON files that have a structure that looks like this

[
    {
        "title": "3 Face To Face",
        "number": 3,
        "content": "<h1>some html here, content can also in markdown</h1>"
    }
]

The above HTML or Markdown can be in the content property, the previewer will render whichever is provided accordingly.

Another supported format is the following

[
    {
        "title": "3 Face To Face",
        "number": 3,
        "markdown": "### some markdown here"
    }
]

In the above example, the property name is markdown instead of content, this too is supported as long as the provided content is valid markdown.

Feedback

If you have any feedback, please reach out to us at manolivier93@gmail.com or create an issue.

License

MIT

About

Preview json file for https://github.com/TinasheMzondiwa/cis-hymnals

https://previewer-psi.vercel.app

License:MIT License


Languages

Language:TypeScript 92.0%Language:CSS 5.1%Language:JavaScript 2.0%Language:HTML 0.9%