From 5333db6f561633fcb0d0a253ae483e2adac8908f Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 31 Jan 2024 18:56:06 +0800 Subject: [PATCH] chore: rename package --- .github/FUNDING.yml | 1 - .golangci.yaml | 2 +- go.mod | 2 +- gomark.go | 8 ++++---- parser/auto_link.go | 4 ++-- parser/auto_link_test.go | 6 +++--- parser/blockquote.go | 4 ++-- parser/blockquote_test.go | 6 +++--- parser/bold.go | 4 ++-- parser/bold_italic.go | 4 ++-- parser/bold_italic_test.go | 6 +++--- parser/bold_test.go | 6 +++--- parser/code.go | 4 ++-- parser/code_block.go | 4 ++-- parser/code_block_test.go | 6 +++--- parser/code_test.go | 6 +++--- parser/embedded_content.go | 4 ++-- parser/embedded_content_test.go | 6 +++--- parser/escaping_character.go | 4 ++-- parser/escaping_character_test.go | 6 +++--- parser/heading.go | 4 ++-- parser/heading_test.go | 6 +++--- parser/highlight.go | 4 ++-- parser/highlight_test.go | 6 +++--- parser/horizontal_rule.go | 4 ++-- parser/horizontal_rule_test.go | 6 +++--- parser/image.go | 4 ++-- parser/image_test.go | 6 +++--- parser/italic.go | 4 ++-- parser/italic_test.go | 6 +++--- parser/line_break.go | 4 ++-- parser/link.go | 4 ++-- parser/link_test.go | 6 +++--- parser/math.go | 4 ++-- parser/math_block.go | 4 ++-- parser/math_block_test.go | 6 +++--- parser/math_test.go | 6 +++--- parser/ordered_list.go | 4 ++-- parser/ordered_list_test.go | 6 +++--- parser/paragraph.go | 4 ++-- parser/paragraph_test.go | 6 +++--- parser/parser.go | 4 ++-- parser/parser_test.go | 6 +++--- parser/referenced_content.go | 4 ++-- parser/referenced_content_test.go | 6 +++--- parser/strikethrough.go | 4 ++-- parser/strikethrough_test.go | 6 +++--- parser/subscript.go | 4 ++-- parser/subscript_test.go | 6 +++--- parser/superscript.go | 4 ++-- parser/superscript_test.go | 6 +++--- parser/table.go | 4 ++-- parser/table_test.go | 6 +++--- parser/tag.go | 4 ++-- parser/tag_test.go | 6 +++--- parser/task_list.go | 4 ++-- parser/task_list_test.go | 6 +++--- parser/text.go | 4 ++-- parser/unordered_list.go | 4 ++-- parser/unordered_list_test.go | 6 +++--- renderer/html/html.go | 2 +- renderer/html/html_test.go | 4 ++-- renderer/renderer.go | 4 ++-- renderer/string/string.go | 2 +- renderer/string/string_test.go | 4 ++-- restore/restore.go | 2 +- restore/restore_test.go | 2 +- wasm/node.go | 4 ++-- wasm/wasm_main.go | 8 ++++---- 69 files changed, 161 insertions(+), 162 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index f9af238..e69de29 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +0,0 @@ -github: usememos diff --git a/.golangci.yaml b/.golangci.yaml index 0551fc0..b7551cd 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -31,7 +31,7 @@ issues: linters-settings: goimports: # Put imports beginning with prefix after 3rd-party packages. - local-prefixes: github.com/usememos/gomark + local-prefixes: github.com/yourselfhosted/gomark revive: # Default to run all linters so that new rules in the future could automatically be added to the static check. enable-all-rules: true diff --git a/go.mod b/go.mod index 300c30f..cd95c81 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/usememos/gomark +module github.com/yourselfhosted/gomark go 1.21 diff --git a/gomark.go b/gomark.go index 64414b1..736d361 100644 --- a/gomark.go +++ b/gomark.go @@ -1,10 +1,10 @@ package gomark import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) // Parse parses the given markdown string and returns a list of nodes. diff --git a/parser/auto_link.go b/parser/auto_link.go index 13831b0..221ecd2 100644 --- a/parser/auto_link.go +++ b/parser/auto_link.go @@ -3,8 +3,8 @@ package parser import ( "net/url" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type AutoLinkParser struct{} diff --git a/parser/auto_link_test.go b/parser/auto_link_test.go index 14d9d0e..6bb3c96 100644 --- a/parser/auto_link_test.go +++ b/parser/auto_link_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestAutoLinkParser(t *testing.T) { diff --git a/parser/blockquote.go b/parser/blockquote.go index 78db2ae..9eaa625 100644 --- a/parser/blockquote.go +++ b/parser/blockquote.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type BlockquoteParser struct{} diff --git a/parser/blockquote_test.go b/parser/blockquote_test.go index 1767071..ced1c31 100644 --- a/parser/blockquote_test.go +++ b/parser/blockquote_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestBlockquoteParser(t *testing.T) { diff --git a/parser/bold.go b/parser/bold.go index 8c3d2fb..4a9b14e 100644 --- a/parser/bold.go +++ b/parser/bold.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type BoldParser struct{} diff --git a/parser/bold_italic.go b/parser/bold_italic.go index b9dda15..ddba63a 100644 --- a/parser/bold_italic.go +++ b/parser/bold_italic.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type BoldItalicParser struct{} diff --git a/parser/bold_italic_test.go b/parser/bold_italic_test.go index b9b79e9..a462c3a 100644 --- a/parser/bold_italic_test.go +++ b/parser/bold_italic_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestBoldItalicParser(t *testing.T) { diff --git a/parser/bold_test.go b/parser/bold_test.go index e5afabb..212d9af 100644 --- a/parser/bold_test.go +++ b/parser/bold_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestBoldParser(t *testing.T) { diff --git a/parser/code.go b/parser/code.go index d8f9114..ed03f9e 100644 --- a/parser/code.go +++ b/parser/code.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type CodeParser struct{} diff --git a/parser/code_block.go b/parser/code_block.go index 87d697d..68910cb 100644 --- a/parser/code_block.go +++ b/parser/code_block.go @@ -3,8 +3,8 @@ package parser import ( "slices" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type CodeBlockParser struct { diff --git a/parser/code_block_test.go b/parser/code_block_test.go index 8c95bff..f7b04ab 100644 --- a/parser/code_block_test.go +++ b/parser/code_block_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestCodeBlockParser(t *testing.T) { diff --git a/parser/code_test.go b/parser/code_test.go index 0204a2e..1ed0b8a 100644 --- a/parser/code_test.go +++ b/parser/code_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestCodeParser(t *testing.T) { diff --git a/parser/embedded_content.go b/parser/embedded_content.go index 8c40f1e..2bfdbb8 100644 --- a/parser/embedded_content.go +++ b/parser/embedded_content.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type EmbeddedContentParser struct{} diff --git a/parser/embedded_content_test.go b/parser/embedded_content_test.go index 68efabe..6802e90 100644 --- a/parser/embedded_content_test.go +++ b/parser/embedded_content_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestEmbeddedContentParser(t *testing.T) { diff --git a/parser/escaping_character.go b/parser/escaping_character.go index b708248..41dfd65 100644 --- a/parser/escaping_character.go +++ b/parser/escaping_character.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type EscapingCharacterParser struct{} diff --git a/parser/escaping_character_test.go b/parser/escaping_character_test.go index e7264d3..bf64202 100644 --- a/parser/escaping_character_test.go +++ b/parser/escaping_character_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestEscapingCharacterParser(t *testing.T) { diff --git a/parser/heading.go b/parser/heading.go index ab38fbd..0cb0188 100644 --- a/parser/heading.go +++ b/parser/heading.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type HeadingParser struct{} diff --git a/parser/heading_test.go b/parser/heading_test.go index 3636013..92e49eb 100644 --- a/parser/heading_test.go +++ b/parser/heading_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestHeadingParser(t *testing.T) { diff --git a/parser/highlight.go b/parser/highlight.go index cbe079f..4c3e48d 100644 --- a/parser/highlight.go +++ b/parser/highlight.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type HighlightParser struct{} diff --git a/parser/highlight_test.go b/parser/highlight_test.go index d585ee0..2528743 100644 --- a/parser/highlight_test.go +++ b/parser/highlight_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestHighlightParser(t *testing.T) { diff --git a/parser/horizontal_rule.go b/parser/horizontal_rule.go index 7c7ef6f..0f78d42 100644 --- a/parser/horizontal_rule.go +++ b/parser/horizontal_rule.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type HorizontalRuleParser struct{} diff --git a/parser/horizontal_rule_test.go b/parser/horizontal_rule_test.go index 1754e7b..55dfdf2 100644 --- a/parser/horizontal_rule_test.go +++ b/parser/horizontal_rule_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestHorizontalRuleParser(t *testing.T) { diff --git a/parser/image.go b/parser/image.go index ab0a18e..f9738e6 100644 --- a/parser/image.go +++ b/parser/image.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type ImageParser struct{} diff --git a/parser/image_test.go b/parser/image_test.go index 56f5e8f..7e00510 100644 --- a/parser/image_test.go +++ b/parser/image_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestImageParser(t *testing.T) { diff --git a/parser/italic.go b/parser/italic.go index 52c85e1..2996b69 100644 --- a/parser/italic.go +++ b/parser/italic.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type ItalicParser struct { diff --git a/parser/italic_test.go b/parser/italic_test.go index 8f2172e..96ca379 100644 --- a/parser/italic_test.go +++ b/parser/italic_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestItalicParser(t *testing.T) { diff --git a/parser/line_break.go b/parser/line_break.go index e822903..e3d563e 100644 --- a/parser/line_break.go +++ b/parser/line_break.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type LineBreakParser struct{} diff --git a/parser/link.go b/parser/link.go index 293c590..b7ced85 100644 --- a/parser/link.go +++ b/parser/link.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type LinkParser struct{} diff --git a/parser/link_test.go b/parser/link_test.go index cd326f8..66a9934 100644 --- a/parser/link_test.go +++ b/parser/link_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestLinkParser(t *testing.T) { diff --git a/parser/math.go b/parser/math.go index 6fdd9e1..67162bb 100644 --- a/parser/math.go +++ b/parser/math.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type MathParser struct{} diff --git a/parser/math_block.go b/parser/math_block.go index 843a8c9..08f423a 100644 --- a/parser/math_block.go +++ b/parser/math_block.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type MathBlockParser struct{} diff --git a/parser/math_block_test.go b/parser/math_block_test.go index 9503895..a842cd0 100644 --- a/parser/math_block_test.go +++ b/parser/math_block_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestMathBlockParser(t *testing.T) { diff --git a/parser/math_test.go b/parser/math_test.go index 91b1bea..2810038 100644 --- a/parser/math_test.go +++ b/parser/math_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestMathParser(t *testing.T) { diff --git a/parser/ordered_list.go b/parser/ordered_list.go index 8febebb..a2b4bf5 100644 --- a/parser/ordered_list.go +++ b/parser/ordered_list.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type OrderedListParser struct{} diff --git a/parser/ordered_list_test.go b/parser/ordered_list_test.go index 66dbe72..0fd1e52 100644 --- a/parser/ordered_list_test.go +++ b/parser/ordered_list_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestOrderedListParser(t *testing.T) { diff --git a/parser/paragraph.go b/parser/paragraph.go index 379b569..c5d273c 100644 --- a/parser/paragraph.go +++ b/parser/paragraph.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type ParagraphParser struct { diff --git a/parser/paragraph_test.go b/parser/paragraph_test.go index 407ab13..3acbda8 100644 --- a/parser/paragraph_test.go +++ b/parser/paragraph_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestParagraphParser(t *testing.T) { diff --git a/parser/parser.go b/parser/parser.go index 7e65e0e..09c8c34 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type BaseParser interface { diff --git a/parser/parser_test.go b/parser/parser_test.go index a733909..d6ac80e 100644 --- a/parser/parser_test.go +++ b/parser/parser_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestParser(t *testing.T) { diff --git a/parser/referenced_content.go b/parser/referenced_content.go index 3cbb399..8537dac 100644 --- a/parser/referenced_content.go +++ b/parser/referenced_content.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type ReferencedContentParser struct{} diff --git a/parser/referenced_content_test.go b/parser/referenced_content_test.go index 72c4237..8904b23 100644 --- a/parser/referenced_content_test.go +++ b/parser/referenced_content_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestReferencedContentParser(t *testing.T) { diff --git a/parser/strikethrough.go b/parser/strikethrough.go index 29ffaae..f913efd 100644 --- a/parser/strikethrough.go +++ b/parser/strikethrough.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type StrikethroughParser struct{} diff --git a/parser/strikethrough_test.go b/parser/strikethrough_test.go index d6659d2..210c457 100644 --- a/parser/strikethrough_test.go +++ b/parser/strikethrough_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestStrikethroughParser(t *testing.T) { diff --git a/parser/subscript.go b/parser/subscript.go index 5d6080c..8787990 100644 --- a/parser/subscript.go +++ b/parser/subscript.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type SubscriptParser struct{} diff --git a/parser/subscript_test.go b/parser/subscript_test.go index 2e07926..400d0ca 100644 --- a/parser/subscript_test.go +++ b/parser/subscript_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestSubscriptParser(t *testing.T) { diff --git a/parser/superscript.go b/parser/superscript.go index 8e97d18..a800f7a 100644 --- a/parser/superscript.go +++ b/parser/superscript.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type SuperscriptParser struct{} diff --git a/parser/superscript_test.go b/parser/superscript_test.go index 3449967..6fc203d 100644 --- a/parser/superscript_test.go +++ b/parser/superscript_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestSuperscriptParser(t *testing.T) { diff --git a/parser/table.go b/parser/table.go index f445deb..11d4576 100644 --- a/parser/table.go +++ b/parser/table.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type TableParser struct{} diff --git a/parser/table_test.go b/parser/table_test.go index 0ef2a82..23a2e60 100644 --- a/parser/table_test.go +++ b/parser/table_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestTableParser(t *testing.T) { diff --git a/parser/tag.go b/parser/tag.go index 1f8f9c7..9ca5fb4 100644 --- a/parser/tag.go +++ b/parser/tag.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type TagParser struct{} diff --git a/parser/tag_test.go b/parser/tag_test.go index 0f42072..46ded8d 100644 --- a/parser/tag_test.go +++ b/parser/tag_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestTagParser(t *testing.T) { diff --git a/parser/task_list.go b/parser/task_list.go index 9e26c65..19b02cf 100644 --- a/parser/task_list.go +++ b/parser/task_list.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type TaskListParser struct{} diff --git a/parser/task_list_test.go b/parser/task_list_test.go index d555a62..7a02f04 100644 --- a/parser/task_list_test.go +++ b/parser/task_list_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestTaskListParser(t *testing.T) { diff --git a/parser/text.go b/parser/text.go index 4d4a9ad..9d29c8e 100644 --- a/parser/text.go +++ b/parser/text.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type TextParser struct { diff --git a/parser/unordered_list.go b/parser/unordered_list.go index 4b313e8..c566983 100644 --- a/parser/unordered_list.go +++ b/parser/unordered_list.go @@ -1,8 +1,8 @@ package parser import ( - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) type UnorderedListParser struct{} diff --git a/parser/unordered_list_test.go b/parser/unordered_list_test.go index 25d937d..a36b5b1 100644 --- a/parser/unordered_list_test.go +++ b/parser/unordered_list_test.go @@ -5,9 +5,9 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" - "github.com/usememos/gomark/parser/tokenizer" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/ast" + "github.com/yourselfhosted/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/restore" ) func TestUnorderedListParser(t *testing.T) { diff --git a/renderer/html/html.go b/renderer/html/html.go index 609fa1e..f27a8d4 100644 --- a/renderer/html/html.go +++ b/renderer/html/html.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - "github.com/usememos/gomark/ast" + "github.com/yourselfhosted/gomark/ast" ) // HTMLRenderer is a simple renderer that converts AST to HTML. diff --git a/renderer/html/html_test.go b/renderer/html/html_test.go index ed1d32f..6641789 100644 --- a/renderer/html/html_test.go +++ b/renderer/html/html_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/parser" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/parser" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) func TestHTMLRenderer(t *testing.T) { diff --git a/renderer/renderer.go b/renderer/renderer.go index b16562a..4e20283 100644 --- a/renderer/renderer.go +++ b/renderer/renderer.go @@ -1,8 +1,8 @@ package renderer import ( - htmlrenderer "github.com/usememos/gomark/renderer/html" - stringrenderer "github.com/usememos/gomark/renderer/string" + htmlrenderer "github.com/yourselfhosted/gomark/renderer/html" + stringrenderer "github.com/yourselfhosted/gomark/renderer/string" ) func NewHTMLRenderer() *htmlrenderer.HTMLRenderer { diff --git a/renderer/string/string.go b/renderer/string/string.go index 5dea682..f1fd389 100644 --- a/renderer/string/string.go +++ b/renderer/string/string.go @@ -4,7 +4,7 @@ import ( "bytes" "fmt" - "github.com/usememos/gomark/ast" + "github.com/yourselfhosted/gomark/ast" ) // StringRenderer renders AST to raw string. diff --git a/renderer/string/string_test.go b/renderer/string/string_test.go index f6c8a78..b16f870 100644 --- a/renderer/string/string_test.go +++ b/renderer/string/string_test.go @@ -5,8 +5,8 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/parser" - "github.com/usememos/gomark/parser/tokenizer" + "github.com/yourselfhosted/gomark/parser" + "github.com/yourselfhosted/gomark/parser/tokenizer" ) func TestStringRender(t *testing.T) { diff --git a/restore/restore.go b/restore/restore.go index 389444a..c30f77a 100644 --- a/restore/restore.go +++ b/restore/restore.go @@ -1,6 +1,6 @@ package restore -import "github.com/usememos/gomark/ast" +import "github.com/yourselfhosted/gomark/ast" func Restore(nodes []ast.Node) string { var result string diff --git a/restore/restore_test.go b/restore/restore_test.go index 1e9456f..8dc94ea 100644 --- a/restore/restore_test.go +++ b/restore/restore_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/usememos/gomark/ast" + "github.com/yourselfhosted/gomark/ast" ) func TestRestore(t *testing.T) { diff --git a/wasm/node.go b/wasm/node.go index 4da97f2..2a418ca 100644 --- a/wasm/node.go +++ b/wasm/node.go @@ -1,8 +1,8 @@ package main import ( - "github.com/usememos/gomark/ast" - nodepb "github.com/usememos/gomark/proto/gen/node/v1" + "github.com/yourselfhosted/gomark/ast" + nodepb "github.com/yourselfhosted/gomark/proto/gen/node/v1" ) func ConvertFromASTNodes(rawNodes []ast.Node) []*nodepb.Node { diff --git a/wasm/wasm_main.go b/wasm/wasm_main.go index 11ad01c..32f6150 100644 --- a/wasm/wasm_main.go +++ b/wasm/wasm_main.go @@ -6,10 +6,10 @@ import ( "google.golang.org/protobuf/encoding/protojson" - "github.com/usememos/gomark/parser" - "github.com/usememos/gomark/parser/tokenizer" - nodepb "github.com/usememos/gomark/proto/gen/node/v1" - "github.com/usememos/gomark/restore" + "github.com/yourselfhosted/gomark/parser" + "github.com/yourselfhosted/gomark/parser/tokenizer" + nodepb "github.com/yourselfhosted/gomark/proto/gen/node/v1" + "github.com/yourselfhosted/gomark/restore" ) // Parse converts markdown to nodes.