Skip to content

Commit e935cc7

Browse files
committed
refactor(blockquote) Rename function, and fix comment
Signed-off-by: Jerome Simeon <[email protected]>
1 parent b5ab8f3 commit e935cc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/markdown-common/src/ToMarkdownStringVisitor.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class ToMarkdownStringVisitor {
6060
}
6161

6262
/**
63-
* Set parameters for inner node
63+
* Set parameters for block quote
6464
* @param {*} parametersOut - the current parameters
65-
* @return {*} the new parameters with first set to true
65+
* @return {*} the new parameters with block quote level incremented
6666
*/
67-
static mkParametersInBlock(parametersOut) {
67+
static mkParametersInBlockQuote(parametersOut) {
6868
let parameters = {};
6969
parameters.result = '';
7070
parameters.first = false;
@@ -173,7 +173,7 @@ class ToMarkdownStringVisitor {
173173
parameters.result += `**${ToMarkdownStringVisitor.visitChildren(this, thing)}**`;
174174
break;
175175
case 'BlockQuote': {
176-
const parametersIn = ToMarkdownStringVisitor.mkParametersInBlock(parameters);
176+
const parametersIn = ToMarkdownStringVisitor.mkParametersInBlockQuote(parameters);
177177
parameters.result += `${ToMarkdownStringVisitor.visitChildren(this, thing, parametersIn)}`;
178178
}
179179
break;

0 commit comments

Comments
 (0)