Blackfriday-Confluence is confluence wiki renderer for the Blackfriday v2 markdown processor.
- ✏️Confluence wiki output
- 👼Support for some of the Confluence Wiki Markup
$ go get -u github.com/kentaro-m/blackfriday-confluence
import (
bf "github.com/russross/blackfriday/v2"
bfconfluence "github.com/kentaro-m/blackfriday-confluence"
)
// ...
renderer := &bfconfluence.Renderer{}
extensions := bf.CommonExtensions
md := bf.New(bf.WithRenderer(renderer), bf.WithExtensions(extensions))
input := "# sample text" // # sample text
ast := md.Parse([]byte(input))
output := renderer.Render(ast) // h1. sample text
fmt.Printf("%s\n", output)
// ...
# Section
Some _Markdown_ text.
## Subsection
Foobar.
### Subsubsection
Fuga
> quote
- - - -
**strong text**
~~strikethrough text~~
[Example Domain](http://www.example.com/)
![](https://blog.golang.org/gopher/header.jpg)
* list1
* list2
* list3
hoge
1. number1
2. number2
3. number3
First Header | Second Header
------------- | -------------
Content Cell | Content Cell
Content Cell | Content Cell
|a |b |c |
|---|---|---|
|1 |2 |3 |
|4 |5 |6 |
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
h1. Section
Some _Markdown_ text.
h2. Subsection
Foobar.
h3. Subsubsection
Fuga
{quote}
quote
{quote}
----
*strong text*
-strikethrough text-
[http://www.example.com/|Example Domain]
!https://blog.golang.org/gopher/header.jpg!
* list1
* list2
* list3
hoge
# number1
# number2
# number3
||First Header||Second Header||
|Content Cell|Content Cell|
|Content Cell|Content Cell|
||a||b||c||
|1|2|3|
|4|5|6|
{code:language=go}
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
{code}
- 🐛 Report a bug
- 🎁 Request a feature
Please use the GitHub Issue to create a issue.
- Fork it (https://github.com/kentaro-m/blackfriday-confluence/fork)
- Create your feature branch
- Run the test (
$ go test
) and make sure it passed ✅ - Commit your changes 📝
- Push to the branch
- Create a new Pull Request ❤️
Blackfriday-Confluence is inspired by Blackfriday-LaTeX.