Skip to content

Commit 4307177

Browse files
committed
Update usrname
1 parent 68d633f commit 4307177

25 files changed

+36
-36
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# html-to-markdown
22

3-
[![Go Report Card](https://goreportcard.com/badge/github.com/JohannesKaufmann/html-to-markdown)](https://goreportcard.com/report/github.com/JohannesKaufmann/html-to-markdown)
4-
[![codecov](https://codecov.io/gh/JohannesKaufmann/html-to-markdown/branch/master/graph/badge.svg)](https://codecov.io/gh/JohannesKaufmann/html-to-markdown)
5-
![GitHub MIT License](https://img.shields.io/github/license/JohannesKaufmann/html-to-markdown)
6-
[![GoDoc](https://godoc.org/github.com/JohannesKaufmann/html-to-markdown?status.png)](http://godoc.org/github.com/JohannesKaufmann/html-to-markdown)
3+
[![Go Report Card](https://goreportcard.com/badge/github.com/tomkosm/html-to-markdown)](https://goreportcard.com/report/github.com/tomkosm/html-to-markdown)
4+
[![codecov](https://codecov.io/gh/tomkosm/html-to-markdown/branch/master/graph/badge.svg)](https://codecov.io/gh/tomkosm/html-to-markdown)
5+
![GitHub MIT License](https://img.shields.io/github/license/tomkosm/html-to-markdown)
6+
[![GoDoc](https://godoc.org/github.com/tomkosm/html-to-markdown?status.png)](http://godoc.org/github.com/tomkosm/html-to-markdown)
77

88
![Gopher, the mascot of Golang, is wearing a party hat and holding a balloon. Next to the Gopher is a machine that converts characters associated with HTML to characters associated with Markdown.](/logo_five_years.png)
99

@@ -12,7 +12,7 @@ Convert HTML into Markdown with Go. It is using an [HTML Parser](https://github.
1212
## Installation
1313

1414
```
15-
go get github.com/JohannesKaufmann/html-to-markdown
15+
go get github.com/tomkosm/html-to-markdown
1616
```
1717

1818
## Usage
@@ -22,7 +22,7 @@ import (
2222
"fmt"
2323
"log"
2424

25-
md "github.com/JohannesKaufmann/html-to-markdown"
25+
md "github.com/tomkosm/html-to-markdown"
2626
)
2727

2828
converter := md.NewConverter("", true, nil)
@@ -60,7 +60,7 @@ opt := &md.Options{
6060
converter := md.NewConverter("", true, opt)
6161
```
6262

63-
For all the possible options look at [godocs](https://godoc.org/github.com/JohannesKaufmann/html-to-markdown/#Options) and for a example look at the [example](/examples/options/main.go).
63+
For all the possible options look at [godocs](https://godoc.org/github.com/tomkosm/html-to-markdown/#Options) and for a example look at the [example](/examples/options/main.go).
6464

6565
## Adding Rules
6666

@@ -88,7 +88,7 @@ For more information have a look at the example [add_rules](/examples/add_rules/
8888
If you want plugins (github flavored markdown like striketrough, tables, ...) you can pass it to `Use`.
8989

9090
```go
91-
import "github.com/JohannesKaufmann/html-to-markdown/plugin"
91+
import "github.com/tomkosm/html-to-markdown/plugin"
9292

9393
// Use the `GitHubFlavored` plugin from the `plugin` package.
9494
converter.Use(plugin.GitHubFlavored())
@@ -105,7 +105,7 @@ For more information have a look at the example [github_flavored](/examples/gith
105105

106106
---
107107

108-
These are the plugins located in the [plugin folder](/plugin) which you can use by importing "github.com/JohannesKaufmann/html-to-markdown/plugin".
108+
These are the plugins located in the [plugin folder](/plugin) which you can use by importing "github.com/tomkosm/html-to-markdown/plugin".
109109

110110
| Name | Description |
111111
| --------------------- | ------------------------------------------------------------------------------------------- |
@@ -143,7 +143,7 @@ This library does NOT sanitize untrusted content. Use an HTML sanitizer such as
143143

144144
## Other Methods
145145

146-
[Godoc](https://godoc.org/github.com/JohannesKaufmann/html-to-markdown)
146+
[Godoc](https://godoc.org/github.com/tomkosm/html-to-markdown)
147147

148148
### `func (c *Converter) Keep(tags ...string) *Converter`
149149

commonmark.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"net/url"
1313

14-
"github.com/JohannesKaufmann/html-to-markdown/escape"
14+
"github.com/tomkosm/html-to-markdown/escape"
1515
"github.com/PuerkitoBio/goquery"
1616
)
1717

commonmark_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"testing"
1212

13-
md "github.com/JohannesKaufmann/html-to-markdown"
13+
md "github.com/tomkosm/html-to-markdown"
1414
"github.com/PuerkitoBio/goquery"
1515
"github.com/sebdah/goldie/v2"
1616
"github.com/yuin/goldmark"

examples/add_rules/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"strings"
77

8-
md "github.com/JohannesKaufmann/html-to-markdown"
8+
md "github.com/tomkosm/html-to-markdown"
99
"github.com/PuerkitoBio/goquery"
1010
)
1111

examples/custom_tag/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"log"
66
"strings"
77

8-
md "github.com/JohannesKaufmann/html-to-markdown"
8+
md "github.com/tomkosm/html-to-markdown"
99
"github.com/PuerkitoBio/goquery"
1010
)
1111

examples/escaping/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
md "github.com/JohannesKaufmann/html-to-markdown"
7+
md "github.com/tomkosm/html-to-markdown"
88
)
99

1010
func main() {

examples/github_flavored/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"fmt"
55
"log"
66

7-
md "github.com/JohannesKaufmann/html-to-markdown"
8-
"github.com/JohannesKaufmann/html-to-markdown/plugin"
7+
md "github.com/tomkosm/html-to-markdown"
8+
"github.com/tomkosm/html-to-markdown/plugin"
99
)
1010

1111
func main() {

examples/goquery/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
md "github.com/JohannesKaufmann/html-to-markdown"
7+
md "github.com/tomkosm/html-to-markdown"
88

99
"github.com/PuerkitoBio/goquery"
1010
)

examples/options/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"log"
66

7-
md "github.com/JohannesKaufmann/html-to-markdown"
7+
md "github.com/tomkosm/html-to-markdown"
88
)
99

1010
func main() {

markdown.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var (
2121
var buf bytes.Buffer
2222
err := html.Render(&buf, element)
2323
if err != nil {
24-
log.Println("[JohannesKaufmann/html-to-markdown] ruleKeep: error while rendering the element to html:", err)
24+
log.Println("[tomkosm/html-to-markdown] ruleKeep: error while rendering the element to html:", err)
2525
return String("")
2626
}
2727

plugin/confluence_attachment_block.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package plugin
33
import (
44
"fmt"
55

6-
md "github.com/JohannesKaufmann/html-to-markdown"
6+
md "github.com/tomkosm/html-to-markdown"
77
"github.com/PuerkitoBio/goquery"
88
)
99

plugin/confluence_code_block.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"strings"
66

7-
md "github.com/JohannesKaufmann/html-to-markdown"
7+
md "github.com/tom/html-to-markdown"
88
"github.com/PuerkitoBio/goquery"
99
)
1010

plugin/frontmatter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package plugin
33
import (
44
"fmt"
55

6-
md "github.com/JohannesKaufmann/html-to-markdown"
6+
md "github.com/tomkosm/html-to-markdown"
77
yaml "gopkg.in/yaml.v2"
88
)
99

plugin/gfm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// part of Commonmark like GitHub Flavored Markdown.
33
package plugin
44

5-
import md "github.com/JohannesKaufmann/html-to-markdown"
5+
import md "github.com/tomkosm/html-to-markdown"
66

77
// GitHubFlavored is GitHub's Flavored Markdown
88
func GitHubFlavored() md.Plugin {

plugin/iframe_vimeo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010
"unicode/utf8"
1111

12-
md "github.com/JohannesKaufmann/html-to-markdown"
12+
md "github.com/tomkosm/html-to-markdown"
1313
"github.com/PuerkitoBio/goquery"
1414
)
1515

plugin/iframe_youtube.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"regexp"
66
"strings"
77

8-
md "github.com/JohannesKaufmann/html-to-markdown"
8+
md "github.com/tomkosm/html-to-markdown"
99
"github.com/PuerkitoBio/goquery"
1010
)
1111

plugin/movefrontmatter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package plugin
33
import (
44
"strings"
55

6-
md "github.com/JohannesKaufmann/html-to-markdown"
6+
md "github.com/tomkosm/html-to-markdown"
77
"github.com/PuerkitoBio/goquery"
88
)
99

plugin/plugin_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package plugin
33
import (
44
"testing"
55

6-
md "github.com/JohannesKaufmann/html-to-markdown"
6+
md "github.com/tomkosm/html-to-markdown"
77
)
88

99
func TestConfluenceCodeBlock(t *testing.T) {

plugin/strikethrough.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package plugin
33
import (
44
"strings"
55

6-
md "github.com/JohannesKaufmann/html-to-markdown"
6+
md "github.com/tomkosm/html-to-markdown"
77
"github.com/PuerkitoBio/goquery"
88
)
99

plugin/table.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"regexp"
55
"strings"
66

7-
md "github.com/JohannesKaufmann/html-to-markdown"
7+
md "github.com/tomkosm/html-to-markdown"
88
"github.com/PuerkitoBio/goquery"
99
)
1010

plugin/task_list.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package plugin
22

33
import (
4-
md "github.com/JohannesKaufmann/html-to-markdown"
4+
md "github.com/tomkosm/html-to-markdown"
55
"github.com/PuerkitoBio/goquery"
66
)
77

plugin_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package md_test
33
import (
44
"testing"
55

6-
md "github.com/JohannesKaufmann/html-to-markdown"
7-
"github.com/JohannesKaufmann/html-to-markdown/plugin"
6+
md "github.com/tomkosm/html-to-markdown"
7+
"github.com/tomkosm/html-to-markdown/plugin"
88
)
99

1010
func TestPlugins(t *testing.T) {

testdata/TestRealWorld/snippets/github_about/goldmark.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Convert HTML to Markdown. Even works with whole websites.</p>
66
<h3>Resources</h3>
77
<p><a href="http://example.com#readme">Readme</a></p>
88
<h3>License</h3>
9-
<p><a href="http://example.com/JohannesKaufmann/html-to-markdown/blob/master/LICENSE">MIT License</a></p>
9+
<p><a href="http://example.com/tomkosm/html-to-markdown/blob/master/LICENSE">MIT License</a></p>

testdata/TestRealWorld/snippets/github_about/input.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 class="sr-only">Resources</h3>
3636
</div>
3737
<h3 class="sr-only">License</h3>
3838
<div class="mt-3">
39-
<a href="/JohannesKaufmann/html-to-markdown/blob/master/LICENSE" class="muted-link">
39+
<a href="/tomkosm/html-to-markdown/blob/master/LICENSE" class="muted-link">
4040
<svg mr="2" height="16" class="octicon octicon-law mr-2" viewBox="0 0 16 16" version="1.1" width="16" aria-hidden="true">
4141
<path fill-rule="evenodd" d="M8.75.75a.75.75 0 00-1.5 0V2h-.984c-.305 0-.604.08-.869.23l-1.288.737A.25.25 0 013.984 3H1.75a.75.75 0 000 1.5h.428L.066 9.192a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.514 3.514 0 00.686.45A4.492 4.492 0 003 11c.88 0 1.556-.22 2.023-.454a3.515 3.515 0 00.686-.45l.045-.04.016-.015.006-.006.002-.002.001-.002L5.25 9.5l.53.53a.75.75 0 00.154-.838L3.822 4.5h.162c.305 0 .604-.08.869-.23l1.289-.737a.25.25 0 01.124-.033h.984V13h-2.5a.75.75 0 000 1.5h6.5a.75.75 0 000-1.5h-2.5V3.5h.984a.25.25 0 01.124.033l1.29.736c.264.152.563.231.868.231h.162l-2.112 4.692a.75.75 0 00.154.838l.53-.53-.53.53v.001l.002.002.002.002.006.006.016.015.045.04a3.517 3.517 0 00.686.45A4.492 4.492 0 0013 11c.88 0 1.556-.22 2.023-.454a3.512 3.512 0 00.686-.45l.045-.04.01-.01.006-.005.006-.006.002-.002.001-.002-.529-.531.53.53a.75.75 0 00.154-.838L13.823 4.5h.427a.75.75 0 000-1.5h-2.234a.25.25 0 01-.124-.033l-1.29-.736A1.75 1.75 0 009.735 2H8.75V.75zM1.695 9.227c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L3 6.327l-1.305 2.9zm10 0c.285.135.718.273 1.305.273s1.02-.138 1.305-.273L13 6.327l-1.305 2.9z"></path>
4242
</svg>

testdata/TestRealWorld/snippets/github_about/output.default.golden

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Convert HTML to Markdown. Even works with whole websites.
1313

1414
### License
1515

16-
[MIT License](http://example.com/JohannesKaufmann/html-to-markdown/blob/master/LICENSE)
16+
[MIT License](http://example.com/tomkosm/html-to-markdown/blob/master/LICENSE)

0 commit comments

Comments
 (0)