Restrict protocol links to org-link-parameters.

This commit is contained in:
Tom Alexander
2023-10-06 19:18:58 -04:00
parent f220fd63e5
commit 89fcf6cb54
3 changed files with 23 additions and 42 deletions

View File

@@ -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,
}
}
}