An open API service indexing awesome lists of open source software.

https://github.com/izumin5210/ohp

OHP is Hacker's Presentation writer with Markdown and CSS
https://github.com/izumin5210/ohp

electron presentation presentation-tools react redux remark-plugin slideshow slideshow-maker

Last synced: about 1 month ago
JSON representation

OHP is Hacker's Presentation writer with Markdown and CSS

Awesome Lists containing this project

README

        

![OHP - OHP is Hacker's Presentation writer with Markdown and CSS](./docs/visual.png)

# OHP
[![Build Status](https://travis-ci.org/izumin5210/OHP.svg?branch=master)](https://travis-ci.org/izumin5210/OHP)
[![MIT License](https://img.shields.io/github/license/izumin5210/OHP.svg)][license]

OHP is Hacker's Presentation writer with Markdown and CSS

## Usage
### Frontmatter
- `fontSize` (`number?`) - Font size (default: `36`)
- `page` - Default configuration for each pages
- `className` (`string?`) - Default class(es)
- `pageNumber` - Default configuration for page numbers
- `enable` (`boolean?`) - Whether to render the page numbers (default: `false`)
- `className` (`string?`) - Class(es) of page number elements (default: `pageNumber`)
- `number` (`number?`) - Pgae number for the first page (default: `1`)

#### Example
```markdown
---
fontSize: 32
page:
className: page
pageNumber:
enable: true
---

# Title
```

### Comment directives
#### ``
##### Example
```markdown
# Page 1

# Page 2
```

#### ``
##### `options`
- `className` (`string?`) - Class(es) of the page element

#### Example
```markdown

# Title

# Table of Contents
```

#### ``
##### `options`
- `enable` (`boolean?`) - Whether to render the page number to the current page
- `className` (`string?`) - Class(es) of the page number element
- `number` (`number?`) - Number to render to this page

##### Example
```markdown

# Title

# Table of Contents
```

### Keyboard Shortcuts

| Windows/Linux | Mac | Action |
| --- | --- | --- |
| Ctrl+Enter | Cmd+Enter | Insert `` |

## Sample

- [[source](https://gist.github.com/izumin5210/b4a61ed5003b1666dfe8ecd5baf683f1)] [Performance of rendering over 10k items using React // Speaker Deck](https://speakerdeck.com/izumin5210/performance-of-rendering-over-10k-items-using-react)

## Development
```
# Run `yarn install` and `lerna bootstrap`
$ yarn bootstrap

# Start webpack-dev-server and electron
$ yarn start:dev

# Or, run `yarn start:dev:app` and `yarn start:dev:server`
```

## License
Licensed under [MIT License][license].

[license]: ./LICENSE