Restrict protocol links to org-link-parameters.
This commit is contained in:
@@ -40,8 +40,8 @@ pub struct GlobalSettings<'g, 's> {
|
||||
|
||||
/// The allowed protocols for links (for example, the "https" in "https://foo.bar/").
|
||||
///
|
||||
/// COrresponds to org-link-parameters elisp variable.
|
||||
pub org_link_parameters: &'g [&'g str],
|
||||
/// Corresponds to org-link-parameters elisp variable.
|
||||
pub link_parameters: &'g [&'g str],
|
||||
}
|
||||
|
||||
pub const DEFAULT_TAB_WIDTH: IndentationLevel = 8;
|
||||
@@ -60,7 +60,7 @@ impl<'g, 's> GlobalSettings<'g, 's> {
|
||||
odd_levels_only: HeadlineLevelFilter::default(),
|
||||
footnote_section: "Footnotes",
|
||||
coderef_label_format: "(ref:%s)",
|
||||
org_link_parameters: &ORG_LINK_PARAMETERS,
|
||||
link_parameters: &ORG_LINK_PARAMETERS,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user