Coder Social home page Coder Social logo

chenguanzhou / markdowneditor Goto Github PK

View Code? Open in Web Editor NEW
597.0 597.0 142.0 60.98 MB

An open-source modern-style desktop markdown editor for Windows 7 and above, based on WPF

Home Page: http://chenguanzhou.github.io/MarkDownEditor/

C# 88.59% CSS 11.41%

markdowneditor's People

Contributors

chenguanzhou avatar cheyhinspark avatar gitter-badger avatar liguobao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdowneditor's Issues

无法使用表格

不管是用标准写法还是简写都无法使用表格

WPF版本没有渲染出表格框架
UWP版本没有识别成表格

image

test test
1 2

关于目录提纲的生成

发现不支持[toc]生成目录
请问该如何生成一个点击跳转的提纲目录? 您的图片示例中字体都一样,是否可以生成字体随着标题级别变化的目录? 是否可以给初学者提供一个较为详细的范本?谢谢

docx格式无法输出公式@win7

1.符号\varepsilon 在你的软件不存在只有\epsilon
2. WIN7导出docx时候所有的 \begin{equation} 格式书写的公式全不输出。是否可以修正? 那就太完美了

导出带有目录的html

MarkDownEditor导出格式挺多的,但是不能导出带左侧导航目录的html,这样浏览文章很费劲。不知道是否有导出带目录结构的html功能?

程序代码高亮时每行代码下面部分被遮住

作者你好,我在使用MarkDownEditor时发现程序代码高亮显示时每行代码的下面部分会被遮住,就像下面这样:
2016-04-26_002710
只能每两行之间空出一行避免这个问题,不知道有什么好的解决办法?

优化速度

通过知乎的安利,使用了您的软件。
界面和功能上非常不错,简单清晰。
但是在我本地打字响应速度有明显感觉,希望能提高。

几点建议

  • pandoc版本可以更下最新版本
  • 输出为html文件时候能否改下标题不要是乱码?我大概猜是用同目录下的临时文件输出的结果pandoc直接把文件名当title了

快捷键支持

例如:
ctrl+1就是一级标题 # 标题1
ctrl+2就是二级标题 ## 标题2

以及其他插入图片,列表等等的快捷键

希望添加对触屏的一点优化

WPF是支持触屏的。我自己用的电脑是触屏的,在用手指触摸移动的时候,我不希望出现选择文本的那种效果,而是翻页效果。当然在用鼠标时还是像原来一样。我自己的方法是在MainWindow.xaml.cs里面加了以下内容:

    private Point touchStartPoint;
    private Point touchEndPoint;
    //右边的部分
    private void MvvmCWBrowser_PreviewTouchDown(object sender, System.Windows.Input.TouchEventArgs e)
    {
        string src = $"onmousedown=new Function(\"return false\")";
        mvvmCWBrowser.GetMainFrame().ExecuteJavaScriptAsync(src);
        touchStartPoint = e.GetTouchPoint(mvvmCWBrowser).Position;
    }

    private void MvvmCWBrowser_PreviewTouchMove(object sender, System.Windows.Input.TouchEventArgs e)
    {
        touchEndPoint = e.GetTouchPoint(mvvmCWBrowser).Position;
        string src = $"scrollBy({-touchEndPoint.X+touchStartPoint.X}, {-touchEndPoint.Y + touchStartPoint.Y})";
        mvvmCWBrowser.GetMainFrame().ExecuteJavaScriptAsync(src);
        touchStartPoint = touchEndPoint;
    }

    //左边的部分
    private void MvvmTextEditor_PreviewTouchDown(object sender, System.Windows.Input.TouchEventArgs e)
    {
        touchStartPoint = e.GetTouchPoint(mvvmTextEditor).Position;
        mvvmTextEditor.IsTouched = true;
    }

    private void MvvmTextEditor_PreviewTouchMove(object sender, System.Windows.Input.TouchEventArgs e)
    {
        touchEndPoint = e.GetTouchPoint(mvvmTextEditor).Position;
        mvvmTextEditor.ScrollToVerticalOffset(mvvmTextEditor.VerticalOffset + (touchStartPoint.Y - touchEndPoint.Y));
        touchStartPoint = touchEndPoint;
    }

然后在MvvmTextEditor.cs里加了

    public bool IsTouched = false;
    protected override void OnPreviewMouseDown(MouseButtonEventArgs e)
    {
        if (!IsTouched)
        {
            base.OnPreviewMouseDown(e);
        }
        else
        {
            e.Handled = true;
        }
    }
    protected override void OnPreviewMouseUp(MouseButtonEventArgs e)
    {
        if (!IsTouched)
        {
            base.OnPreviewMouseUp(e);
        }
        else
        {
            e.Handled = true;
        }
        IsTouched = false;
    }

最后在MvvmChromiumWebBrowser中加

    protected override void OnMouseUp(MouseButtonEventArgs e)
    {
        base.OnMouseUp(e);
        string src = $"onmousedown=new Function(\"return true\")";
        this.GetMainFrame().ExecuteJavaScriptAsync(src);
    }

本人纯小白,不知道有没有什么更好的实现方法……也不知道大佬们还有没有关注这个……

win7x64直接点击md文件调用markdownEditor失败

public App()
{
var settings = new CefSettings();
settings.EnableInternalPdfViewerOffScreen();
settings.CefCommandLineArgs.Add("disable-gpu", "1");
Cef.Initialize(settings, shutdownOnProcessExit: false, performDependencyCheck: true);
}

Cef.Initialize(settings, shutdownOnProcessExit: false, performDependencyCheck: true); throw exception.

{"Unable to locate required Cef/CefSharp dependencies:\r\n
Missing:CefSharp.BrowserSubprocess.exe\r\n
Missing:CefSharp.BrowserSubprocess.Core.dll\r\n
Missing:CefSharp.Core.dll\r\n
Missing:CefSharp.dll\r\n
Missing:icudtl.dat\r\n
Missing:libcef.dll\r\n

Executing Assembly Path:D:\lajinanpiao\github\MarkDownEditor\MarkDownEditor\bin\x64\Debug\r\n"}

新手的一些问题

请问markdown的解析器是自己实现的还是第三方的开源库?谢谢🙏

希望添加左侧大纲视图功能

把各级标题单独现在在大纲栏
类似word的导航窗格效果

目前的win平台md编辑器仅有typora和cutemarked有大纲功能.在写东西时有这个舒服很多

切换窗口回到编辑器后,不能直接输入。

在切换至其他的窗口后,再切换回来,不能直接输入,要点击一下输入区才能输入。

  • 切换窗口的方式是Alt+Tab。
  • 操作系统是Windows 10,安装的版本是当前Windows 商店中的最新版本。

do not support multi-tag or multi-windows

when open a md file or new (ctrl + n),the previous file will be replace.

here's my suggestion , when open or new one , just open a new markdowneditor window.

another problem,every time i open a file , the markdowneditor window is maximized

Todos

  • Outline
  • Html head
  • Mathjax support
  • Auto indention
  • Precise scroll
  • Override Existing Files
  • Make font size more appropriate among css files
  • Font bug
  • Multi-windows
  • Save window's geometry state when exit app
  • Bug: crashed in exporting pdf when "No css"
  • Local relative image path
  • sm.ms support
  • Delay conversion with pandoc

感谢作者的努力。就是本地图片处理不了(相对路径问题)

我看了代码,使用的是pandoc做html导出。例如
![](/Image4.1.png),导出来的html里面是<img src="/Image4.1.png">,我尝试着在导出的html文件里面添加一个“.” 变成<img src="./Image4.1.png">之后,绝大部分浏览器就能够显示图片了。
我的问题是这样:能不能调整pandoc,让导出的代码里面多出来一个"."

再次感谢作者的工作,这个软件比gitBook好用

Feature Request - Load index of markdown files.

It would be especially nice to work on project documentation with markdown if the editor was able to load an index of multiple MD files on the left and which ever was selected would appear for editing in the right pane.

The index file could be index.md with contents like:

readme.md  "Read Me"
setup.md "Setting up the Project"
/docs/tech.md "Technologies / Packages"
/docs/sql.md "SQL Scripts"

Your app would then load a list of pages in a small vertical pane on the left showing the text of each entry if text was provided at all.

UI修改

把那些大按钮收起来吧....真心有点扎眼

关于MarkDownEditor若干建议

关于MarkDownEditor若干建议
第一眼就喜欢,所以建议。

要取消的:

image
image

以上两横除了浪费空间看不出来有什么用,别告诉我为了美观。

image

“设置“单独一横太浪费空间,建议合并到下面或者上面。

同样的,建议工具栏合并到最上面那个栏里,右侧预览栏同理。

image

结果:

image

其它

0.默认主题颜色太显眼,分散注意力,影响写作。
1.鼠标点击左边栏目有颜色高亮显示,那么预览也应该有光标提示,方便检查。
2.键盘没有快捷键到全屏预览,同样也无法用键盘选择右边预览栏的功能。(需要 tab功能切换)
3.如果你需要,我可以ps一个我建议后的界面预览。
以上。

请教一下问题

这款MarkdownEditor很不错,不过最新的.6、.7两个版本,我在win10.0.10586,安装后,无法启动,想请教下是什么问题

win10不能用

前面有个反应win10不能用的竟然被作者关闭问题。win10安装后,点击图标无任何反应,已安装.net 4.5.2.
另外,能不能加入回退和历史功能,写错了回退都没有。修改也无历史。

to support flow chart ?

first of all, thank you for the wonderful work. Among all the features, I like the support of PDF export and the instant rendering of text. The app starts and closes quickly on my win10.

It seems that it does not support the flow chart at this time. Would you have it in future release?

Little problem with tex code

Code like $\bar {\hat {u}}$ can not be shown correctly, and in this code, the \bar is shown at the foot of u. Details can be seen in the pic below, which contains 2 examples.
sshot-9
Thank for your outstanding work anyway!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.