| Crates.io | opmark |
| lib.rs | opmark |
| version | 0.0.3 |
| created_at | 2022-02-26 14:53:55.853012+00 |
| updated_at | 2022-06-02 09:11:45.040582+00 |
| description | An experimental markup language focused on presentation making |
| homepage | https://github.com/fralonra/opmark |
| repository | https://github.com/fralonra/opmark |
| max_upload_size | |
| id | 539975 |
| size | 34,789 |
OpMark is an experimental markup language focused on presentation making. It's still in pre-alpha stage.
## This is Page 1
This is a simple example of *OpMark*.
---
## This is Page 2
### Rich Text
You can markup text using the following syntax:
*bold*
`code`
/italics/
$small$
~strikethrough~
_underline_
### Lists
You can make lists:
- unordered list
1. ordered list as well
### Images

### Hyperlinks
[Github](https://github.com/)
WARN: OpMark uses different codes for EOL(end of line/line break) in different systems: \r\n(CRLF) in Windows, \n(LF) in others.
use opmark::Parser;
use std::{
fs::read_to_string,
path::Path,
};
fn main() {
let path = Path::new("./foo/bar.opmark");
let file_content = read_to_string(path).expect("Failed at reading file");
let parser = Parser::new(file_content);
for mark in parser {
// do some stuff
}
}