~matthiasbeyer/imag

8bf6e66d41dd18e5602f24c40b60151cd1e2b29b — Matthias Beyer 2 years ago be04360
Fix for update to new version of mdcat

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2 files changed, 4 insertions(+), 5 deletions(-)

M lib/entry/libimagentryview/Cargo.toml
M lib/entry/libimagentryview/src/builtin/md.rs
M lib/entry/libimagentryview/Cargo.toml => lib/entry/libimagentryview/Cargo.toml +1 -1
@@ 33,7 33,7 @@ libimagentryedit = { version = "0.10.0", path = "../../../lib/entry/libimagentry
mdcat   = { version = "0.13.0", optional = true }

[dependencies.pulldown-cmark]
version          = "0.5.2"
version          = "^0.4"
optional         = true
default-features = false
features         = []

M lib/entry/libimagentryview/src/builtin/md.rs => lib/entry/libimagentryview/src/builtin/md.rs +3 -4
@@ 22,7 22,7 @@ use std::io::Write;
use libimagstore::store::Entry;
use libimagrt::runtime::Runtime;

use mdcat::{AnsiTerminal, ResourceAccess, TerminalSize};
use mdcat::{ResourceAccess, TerminalCapabilities, TerminalSize};
use pulldown_cmark::Parser;
use syntect::parsing::SyntaxSet;



@@ 57,9 57,8 @@ impl<'a> Viewer for MarkdownViewer<'a> {
        let base_dir        = self.rt.rtp();
        let syntax_set      = SyntaxSet::load_defaults_newlines();

        let mut term = AnsiTerminal::new(sink);

        ::mdcat::push_tty(&mut term,
        ::mdcat::push_tty(sink,
                          TerminalCapabilities::ansi(),
                          self.termsize.clone(),
                          parser,
                          base_dir,