pub struct MarkdownHandler<'octo> { /* private fields */ }
Expand description Implementations§ Source§ impl<'octo> MarkdownHandler<'octo> Source pub fn render<'r, 'text>( &'r self, text: &'text (impl AsRef<str> + ?Sized), ) -> RenderMarkdownBuilder<'octo, 'r, 'text>
Render an arbitrary Markdown document.
use octocrab::params;
let markdown = octocrab::instance()
.markdown()
.render("Comment referencing issue #404")
.mode(params::markdown::Mode::Gfm)
.context("owner/repo")
.send()
.await?;
Source pub async fn render_raw(&self, text: impl Into<String>) -> Result<String>
Render a Markdown document in raw mode.
use octocrab::params;
let markdown = octocrab::instance()
.markdown()
.render_raw("~~_**Octocrab**_~~")
.await?;
Auto Trait Implementations§ Blanket Implementations§
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4