-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Markdown parsing in doc comments #5891
base: master
Are you sure you want to change the base?
Conversation
10af7ac
to
82ebbe7
Compare
[[example]] | ||
name = "markdown-derive" | ||
required-features = ["derive"] |
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.
We can remove this example or incorporate it in others once it's finished, was more for testing while developing.
// TODO If we decide not to support any colors, we can replace this with | ||
// anstyle::Effects and remove the need for applying them all individually. |
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.
Decide whether we want to support colors.
let style_heading = Style::new().bold(); | ||
let style_emphasis = Style::new().italic(); | ||
let style_strong = Style::new().bold(); | ||
let style_strike_through = Style::new().strikethrough(); | ||
let style_link = Style::new().underline(); | ||
// TODO decide how to style code | ||
let style_code = Style::new().dimmed(); | ||
let tab_width = 2; | ||
// TODO UNICODE let list_symbol = '•'; | ||
let list_symbol = '-'; |
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.
Decide markdown styling
// TODO for anything useful we'd need to know the terminal width | ||
Event::Rule => { | ||
writer.endline(); | ||
writer.newline(); | ||
write!(writer, "---\n\n"); | ||
} |
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.
Should we render rule as ---
or is there anything else we can do without terminal width
82ebbe7
to
e906f16
Compare
fixes #2389