pub struct GithubReferences {
pub repo: String,
pub base_url: String,
}Expand description
Converts GitHub-style references in text to link nodes.
Supported patterns:
#123→ link to issue/PR@username→ link to user profile- 7+ hex chars → link to commit
§Configuration
Set repo directly, or add github: owner/repo to your document’s frontmatter.
§Example
use rdx_transform::Pipeline;
use rdx_github::GithubReferences;
let root = Pipeline::new()
.add(GithubReferences::new("rdx-lang/rdx"))
.run("Fixed #42 by @octocat.\n");Fields§
§repo: String§base_url: StringImplementations§
Trait Implementations§
Source§impl Default for GithubReferences
impl Default for GithubReferences
Source§impl Transform for GithubReferences
impl Transform for GithubReferences
Auto Trait Implementations§
impl Freeze for GithubReferences
impl RefUnwindSafe for GithubReferences
impl Send for GithubReferences
impl Sync for GithubReferences
impl Unpin for GithubReferences
impl UnsafeUnpin for GithubReferences
impl UnwindSafe for GithubReferences
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more