pub fn resolve_entry_point<'a, I>(
paths: I,
manifest: Option<&Manifest>,
) -> Result<String>where
I: IntoIterator<Item = &'a str>,Expand description
The archive’s primary Markdown file, by the ordered algorithm in Section 5.5.
- A manifest
entryPointis used if it’s a valid entry point path that matches a file. Otherwise this fails withErrorCode::EntryPointInvalidorErrorCode::EntryPointMissing; it never falls back silently. index.mdat the archive root.- The single root-level Markdown file, setting support files aside; or, if every root-level Markdown file is a support file and there’s exactly one, that file.
- Otherwise
ErrorCode::EntryPointUnresolved.
paths are the archive’s entry names; directory entries (ending in /)
are ignored. Returns the path as stored.