Skip to content

Commit 711fcc9

Browse files
committed
use CommonMark vocab
1 parent 833887a commit 711fcc9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

actions/login-and-validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (Object.hasOwn(request, 'richTextFile')) {
2121
richTextFile = path.resolve(path.dirname(requestFilePath), request.richTextFile);
2222
request.richText = fs.readFileSync(richTextFile, 'utf-8');
2323
}
24-
const threadElements = request.action !== 'repost' && request.richText?.split(/\n\n---+\n\n/g);
24+
const threadElements = request.action !== 'repost' && request.richText?.split(/\n\n {0,3}[-_*]{3,}\n\n/g);
2525
const requests = threadElements?.length ?
2626
threadElements.map((richText, i) => ({
2727
...request,

automation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Content automation is done in the form of adding new JSON files to `records/new`
5151
### Threads
5252

5353
To send several messages replying to one another, you can separate each tweet
54-
using a Markdown separator (a new paragraph consisting of only three dashes or
55-
more) inside the `richText` or `richTextFile`:
54+
using a Markdown thematic break (e.g. a new paragraph consisting of only three
55+
dashes) inside the `richText` or `richTextFile`:
5656

5757
```markdown
5858
Here is the first tweet.

0 commit comments

Comments
 (0)