-
Notifications
You must be signed in to change notification settings - Fork 146
save custom ordered list start index in render JSON #53
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
save custom ordered list start index in render JSON #53
Conversation
Sources/SwiftDocC/SwiftDocC.docc/Resources/RenderNode.spec.json
Outdated
Show resolved
Hide resolved
6a22699
to
e43661b
Compare
@swift-ci Please test |
Sources/SwiftDocC/Model/Rendering/Content/RenderBlockContent.swift
Outdated
Show resolved
Hide resolved
e43661b
to
b09a1af
Compare
b09a1af
to
3a06aab
Compare
3a06aab
to
8e1208d
Compare
Rebased to resolve merge conflict and to bring up to date with the swift-markdown PR. @swift-ci Please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
Package.resolved
Outdated
"branch": "main", | ||
"revision": "69f31f83a5dca9a3401d3e8fc8ff74804b0dd0ca", | ||
"branch": "list-numbering", | ||
"revision": "0cdc7269aa395115e50b25f388ffd184a4f04787", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small reminder to un-stage this before merging
8e1208d
to
a0c796b
Compare
@swift-ci Please test |
Bug/issue #, if applicable: rdar://73847907
Summary
While cmark-gfm saves the starting index for an ordered list, swift-markdown currently discards this information. This PR is part of a set to preserve this starting index when rendering documentation.
Dependencies
swiftlang/swift-markdown#22
Testing
Add the following markdown to
Sources/SwiftDocC/SwiftDocC.docc/SwiftDocC.md
:Steps:
$DOCC_HTML_DIR
to the resultingdist
directory.bin/preview-docs
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/test
script and it succeeded