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

https://github.com/denisidoro/remacro

Plain-text macro expander with React-inspired widgets. Markdown with steroids. :muscle:
https://github.com/denisidoro/remacro

hacktoberfest macro markdown markup react

Last synced: 6 months ago
JSON representation

Plain-text macro expander with React-inspired widgets. Markdown with steroids. :muscle:

Awesome Lists containing this project

README

          

# remacro

:warning: This has been deprecated in favor of tools such as [zola](https://github.com/getzola/zola)

## Usage

With this tool it's possible to generate a superset of markdown, so that you don't repeat yourself.

It also works for any plain-text content, so it's able to expand source code as well.

Examples:

Input Macros Output

```markdown
# Hello World

Lorem ipsum

This is a custom widget
```

```javascript
const Box = ({ icon, children }) => `> :${icon}: ${children}`

const LoveBox = ({ children }) => {children}
```

```markdown
# Hello World

Lorem ipsum

> :heart: This is a custom widget
```

```go
foo, err := bar()

```

```javascript
const Err = ({ v }) => `if err != nil {
return nil, err
}
return ` + v + ", nil"
```

```go
foo, err := bar()
if err != nil {
return nil, err
}
return foo, nil
```

output.md
```

## Integration with VSCode

TODO

## Provided macros

- [Confluence wiki](templates/confluence)