mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-08 20:11:09 -06:00
[feature] Parse content warning as HTML, serialize via API to plaintext
This commit is contained in:
parent
69461c461b
commit
22ce924129
47 changed files with 947 additions and 553 deletions
|
|
@ -93,6 +93,16 @@ func (suite *TextStandardTestSuite) FromMarkdown(input string) *text.FormatResul
|
|||
)
|
||||
}
|
||||
|
||||
func (suite *TextStandardTestSuite) FromMarkdownBasic(input string) *text.FormatResult {
|
||||
return suite.formatter.FromMarkdownBasic(
|
||||
context.Background(),
|
||||
suite.parseMention,
|
||||
suite.testAccounts["local_account_1"].ID,
|
||||
"dummy_status_ID",
|
||||
input,
|
||||
)
|
||||
}
|
||||
|
||||
func (suite *TextStandardTestSuite) FromPlain(input string) *text.FormatResult {
|
||||
return suite.formatter.FromPlain(
|
||||
context.Background(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue