Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(parser/renderer): support block and paragraph quotes #157

Merged
merged 1 commit into from
Jul 31, 2018

Conversation

xcoulon
Copy link
Member

@xcoulon xcoulon commented Jul 31, 2018

also:

  • fix missing ID and title in admonition blocks (delimited blocks)
  • fix grammar for listing blocks and verse blocks
  • fix parsing/rendering of trailing spaces: included in
    the AST after parsing, but removed during rendering on the
    last element of a line.

fixes #141

Signed-off-by: Xavier Coulon [email protected]

@@ -94,7 +99,7 @@ func renderTableOfContentSections(ctx *renderer.Context, elements []interface{},
return nil, nil
}
resultBuf := bytes.NewBuffer(nil)
tableOfContentSectionSetTmpl.Execute(resultBuf, TableOfContentSectionGroup{
tableOfContentSectionSetTmpl.Execute(resultBuf, TableOfContentsSectionGroup{

Choose a reason for hiding this comment

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

Error return value of tableOfContentSectionSetTmpl.Execute is not checked

also:
- fix missing ID and title in admonition blocks (delimited blocks)
- fix grammar for listing blocks and verse blocks
- fix parsing/rendering of trailing spaces: included in
the AST after parsing, but removed during rendering on the
last element of a line.

fixes bytesparadise#141

Signed-off-by: Xavier Coulon <[email protected]>
@xcoulon xcoulon force-pushed the Issue141_support_quotes branch from 0119765 to 57926ba Compare July 31, 2018 22:07
@codecov
Copy link

codecov bot commented Jul 31, 2018

Codecov Report

Merging #157 into master will increase coverage by 0.51%.
The diff coverage is 93.38%.

@@            Coverage Diff             @@
##           master     #157      +/-   ##
==========================================
+ Coverage   83.21%   83.73%   +0.51%     
==========================================
  Files          34       34              
  Lines        2342     2385      +43     
==========================================
+ Hits         1949     1997      +48     
+ Misses        255      252       -3     
+ Partials      138      136       -2

@xcoulon xcoulon merged commit 9f1e394 into bytesparadise:master Jul 31, 2018
@xcoulon xcoulon deleted the Issue141_support_quotes branch February 25, 2019 08:24
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.

Support quote blocks
2 participants