Skip to content

feat: Preserve raw value of comments#54

Open
kevin-greene-ck wants to merge 1 commit into
masterfrom
comment-raw-value
Open

feat: Preserve raw value of comments#54
kevin-greene-ck wants to merge 1 commit into
masterfrom
comment-raw-value

Conversation

@kevin-greene-ck

Copy link
Copy Markdown
Contributor

Resolves #53

Comment thread src/main/parser.ts

while (true) {
if (
comment.charAt(cursor - 1) === '\n' &&

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should't it be comment.charAt(cursor)

Comment thread src/main/parser.ts
if (
comment.charAt(cursor - 1) === '\n' &&
(rawValue[(index + 1)] === ' ' || rawValue[(index + 1)] === '*')
) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will make us skip any blank space between words separated by new line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants