-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website: implement greentext in a less scuffed way
News page now loads through htmx, has comments and has infinite scroll on the archive page.
- Loading branch information
Showing
9 changed files
with
189 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package markdown | ||
|
||
import ( | ||
"bytes" | ||
"fmt" | ||
"testing" | ||
|
||
"github.com/yuin/goldmark" | ||
"github.com/yuin/goldmark/util" | ||
) | ||
|
||
var data []byte | ||
|
||
func TestMemeQuotesExtension(t *testing.T) { | ||
data = []byte(` `) | ||
|
||
md := goldmark.New(RadioMarkdownOptions()...) | ||
|
||
var buf bytes.Buffer | ||
err := md.Convert([]byte(data), &buf) | ||
|
||
fmt.Println(err) | ||
fmt.Println(buf.String()) | ||
} | ||
|
||
func FuzzRadioStyleMarkdown(f *testing.F) { | ||
f.Fuzz(func(t *testing.T, orig string) { | ||
markdown := goldmark.New(RadioMarkdownOptions()...) | ||
var buf bytes.Buffer | ||
err := markdown.Convert(util.StringToReadOnlyBytes(orig), &buf) | ||
if err != nil { | ||
panic(err) | ||
} | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.