Skip to content

Commit f46fb01

Browse files
committed
Adjust "Question" and "Answer" styles
1 parent d91774c commit f46fb01

20 files changed

+57
-57
lines changed

dist/minimizedChatGptToMarkdown.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "ChatGPT to Markdown",
4-
"version": "0.0.7",
4+
"version": "0.0.8",
55
"description": "A Chrome extension to save ChatGPT Q&A page as markdown",
66
"permissions": ["activeTab", "scripting"],
77
"action": {

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "chatgpt-to-markdown",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Save ChatGPT Q&A page as markdown",
55
"scripts": {
66
"build": "npx webpack --mode production",

src/utils/parseNode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ function parseNode(node, level) {
2525

2626
if (node.className == 'empty:hidden') {
2727
nodeMarkdown += getHorizontalRules();
28-
nodeMarkdown += `\n\n## Question\n\n`;
28+
nodeMarkdown += `\n\n# _Question_\n\n`;
2929
}
3030

3131
if (node.className.includes('markdown prose')) {
32-
nodeMarkdown += `\n\n## Answer\n\n`;
32+
nodeMarkdown += `\n\n# _Answer_\n\n`;
3333
}
3434

3535
if (node.tagName === 'OL') {

tests/utils/test_cases/2023_08_new_format.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
## Question
1+
# _Question_
22

33
Hi ChatGPT!
44

5-
## Answer
5+
# _Answer_
66

77
Hello! How can I assist you today?
88

99
----------
1010

11-
## Question
11+
# _Question_
1212

1313
What version are you?
1414

15-
## Answer
15+
# _Answer_
1616

1717
I am based on the GPT-4 architecture. How can I help you today?
1818

1919
----------
2020

21-
## Question
21+
# _Question_
2222

2323
Just want to casually chat with you.
2424

25-
## Answer
25+
# _Answer_
2626

2727
Of course! Casual chats are always welcome. What's on your mind? Anything you're curious about or want to discuss?
2828

2929
----------
3030

31-
## Question
31+
# _Question_
3232

3333
Which number is bigger? 1234^5678 or 5678^1234?
3434

35-
## Answer
35+
# _Answer_
3636

3737
To determine which number is larger, 123456781234^{5678}12345678 or 567812345678^{1234}56781234, we can use logarithms.
3838

tests/utils/test_cases/block_quotes_0.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Question
1+
# _Question_
22

33
Can you generate some texts with normal texts mixed with markdown block quotes?
44

5-
## Answer
5+
# _Answer_
66

77
Sure, here's an example of a text with normal text and markdown block quotes:
88

@@ -18,11 +18,11 @@ Sure, here's an example of a text with normal text and markdown block quotes:
1818
1919
----------
2020

21-
## Question
21+
# _Question_
2222

2323
Can you put block quotes between normal texts?
2424

25-
## Answer
25+
# _Answer_
2626

2727
Yes, you can definitely use block quotes between normal text. Here's an example:
2828

@@ -42,11 +42,11 @@ With dedication and perseverance, you can become a skilled programmer and open u
4242

4343
----------
4444

45-
## Question
45+
# _Question_
4646

4747
Can you put block quotes within an unordered list?
4848

49-
## Answer
49+
# _Answer_
5050

5151
Yes, you can definitely use block quotes within an unordered list. Here's an example:
5252

@@ -67,11 +67,11 @@ By using a block quote within the list item for Java and C++, you can provide ad
6767

6868
----------
6969

70-
## Question
70+
# _Question_
7171

7272
Can you put block quotes within a table?
7373

74-
## Answer
74+
# _Answer_
7575

7676
Yes, you can put block quotes within a table in Markdown. Here's an example:
7777

@@ -94,11 +94,11 @@ In this table, we have used block quotes to provide additional information for t
9494

9595
----------
9696

97-
## Question
97+
# _Question_
9898

9999
Can you include bold, italic, bold and italic, strikethrough, and inline code in block quotes?
100100

101-
## Answer
101+
# _Answer_
102102

103103
Yes, you can include bold, italic, bold and italic, strikethrough, and inline code in block quotes. Here's an example:
104104

@@ -114,11 +114,11 @@ Yes, you can include bold, italic, bold and italic, strikethrough, and inline co
114114
115115
----------
116116

117-
## Question
117+
# _Question_
118118

119119
Can you print a block quote with unordered and ordered lists in it?
120120

121-
## Answer
121+
# _Answer_
122122

123123
Yes, you can print a block quote with unordered and ordered lists in it. Here's an example:
124124

tests/utils/test_cases/block_quotes_1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Question
1+
# _Question_
22

33
Can you print a block quote with unordered and ordered lists in it?
44

5-
## Answer
5+
# _Answer_
66

77
Sure, here's an example of a block quote with both unordered and ordered lists:
88

tests/utils/test_cases/block_quotes_2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Question
1+
# _Question_
22

33
Can you show me a block quote where you include bold, italic, bold and italic, strikethrough, and inline code in it? Also, add a nested block quote in it.
44

5-
## Answer
5+
# _Answer_
66

77
Sure, here's an example block quote that includes all the formatting options you mentioned, including a nested block quote:
88

tests/utils/test_cases/block_quotes_3.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
## Question
1+
# _Question_
22

33
Can you generate some texts with normal texts mixed with markdown block quotes?
44

5-
## Answer
5+
# _Answer_
66

77
Sure, I can do that! Here's an example:
88

0 commit comments

Comments
 (0)