Giter Club home page Giter Club logo

markdownviewerplusplus's Introduction

Ahoy 🚢

Linkedin Twitter

👋 We are elipZis - Digitisation Natives providing solutions with Nordic calm ❄

//Get IT done!

elipZis is a Digital Agency located in the hanseatic city of Bremen that creates software solutions for practitioners.


Github Stats By Anurag


//Tech Stack

We are technology agnostic and believe in using the most fitting tools for a solution is more appropriate than the "one fits all" approach. But some often used technologies are:

Web Desktop Cloud Mobile Platforms

Golang PHP TypeScript JavaScript Java CSharp/.net

Laravel Symfony Echo Flutter VueJS Svelte

markdownviewerplusplus's People

Contributors

dail8859 avatar monoblaine avatar nea 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

markdownviewerplusplus's Issues

Local image not displayed when export as HTML/PDF file

I notice that you have fixed the bug mentioned in Issue #23. I tryed to use ![png](file:///imagepath) to display my image, and in notepad++, the image displayed well. However, when I clicked the export button to convert markdown file to html, the image didn't appear in my browser, and the html code is
<img src="file:///./output_1_1.png" alt="png">.

unnecessary <p> tags inside list items if a list follows directly to another list

At first: Thank you for this great plugin. It's that thing I needed since I write everything in markdown and sometimes want to export HTML or PDFs.

But I discovered a bug. If I just write some list items without headlines or text between two or more lists the plugin creates p tags inside the list items. Also all list items from different lists are in one list.

system:
Win 7 64 bit, Notepad++ 7.3.3
MarkdownViewer++ 0.7.1

works like expected:

2017-03-22_113031

with p inside li:

2017-03-22_112915

HTML output:

    <ul>
      <li>
        <p>list item</p>
      </li>
      <!-- ... -->
      <li>
        <p>list item</p>
        <ul>
          <li>nested list</li>
        </ul>
      </li>
      <li>
        <p>another list</p>
      </li>
      <!-- ... -->
      <li>
        <p>another list</p>
      </li>
    </ul>

In numbered list unneeded newline after item number

Rendering a simple numbered list with a blank line between items gives (on screen and in pdf but not in html) an unwanted newline after the item number (see first screen capture below). Instead, without blank line gives the correct list rendering (see second screen capture below).
Bug or feature?
Thanks for looking!
mario

capture1
capture2

Error: ColorBlend object that was set is not valid

I have tried release 0.7.1.0 on Windows 10 x64, I get the following error when opening the viewer. I don't get this error in Windows 7 x64. When I switched to Windows 10 x64, I get this error in both of my machines. Then I tried to compile and troubleshoot but unfortunately I couldn't get the Unicode to compile which I have logged under issue #48, otherwiseI can investigate further.

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: ColorBlend object that was set is not valid.Position's last element must be equal to 1.0. ColorBlend objects must be constructed with the same number of positions and color values. Positions must be between 0.0 and 1.0, 1.0 indicating the last element in the array.
   at System.Drawing.Drawing2D.LinearGradientBrush._SetInterpolationColors(ColorBlend blend)
   at Svg.SvgLinearGradientServer.GetBrush(SvgVisualElement renderingElement, ISvgRenderer renderer, Single opacity, Boolean forStroke)
   at Svg.SvgVisualElement.RenderFill(ISvgRenderer renderer)
   at Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter)
   at Svg.SvgVisualElement.Render(ISvgRenderer renderer)
   at Svg.SvgElement.RenderChildren(ISvgRenderer renderer)
   at Svg.SvgVisualElement.Render(ISvgRenderer renderer, Boolean renderFilter)
   at Svg.SvgVisualElement.Render(ISvgRenderer renderer)
   at Svg.SvgElement.RenderChildren(ISvgRenderer renderer)
   at Svg.SvgElement.Render(ISvgRenderer renderer)
   at Svg.SvgFragment.Render(ISvgRenderer renderer)
   at Svg.SvgDocument.Draw(Bitmap bitmap)
   at com.insanitydesign.MarkdownViewerPlusPlus.Forms.MarkdownViewerRenderer.ConvertSvgToBitmap(SvgDocument svgDocument, HtmlImageLoadEventArgs imageLoadEvent)
   at com.insanitydesign.MarkdownViewerPlusPlus.Forms.MarkdownViewerRenderer.OnDownloadDataCompleted(DownloadDataCompletedEventArgs downloadEvent, HtmlImageLoadEventArgs imageLoadEvent)
   at com.insanitydesign.MarkdownViewerPlusPlus.Forms.MarkdownViewerRenderer.<>c__DisplayClass5_1.<OnImageLoad>b__1(Object downloadSender, DownloadDataCompletedEventArgs downloadEvent)
   at System.Net.WebClient.OnDownloadDataCompleted(DownloadDataCompletedEventArgs e)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2115.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
MarkdownViewerPlusPlus
    Assembly Version: 0.7.1.30408
    Win32 Version: 0.7.1.0
    CodeBase: file:///C:/Program%20Files/Notepad++/plugins/MarkdownViewerPlusPlus.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2046.0 built by: NET47REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2116.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Office.Interop.Outlook
    Assembly Version: 15.0.0.0
    Win32 Version: 15.0.4569.1507
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Outlook/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.dll
----------------------------------------
office
    Assembly Version: 15.0.0.0
    Win32 Version: 15.0.4613.1000
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/office/15.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------

File extensions not working

Does not work as expected:

  • setting Options->General->File extensions -> log -> Save
  • opening a file.log with plugin active == message:
    Your configuration settings do not include the currently selected file extension.
    The rendered file extensions are 'log'.
    The current file is 'file.log'. False
  • clicking View-Refresh works

Problem with table display

The markdown display of tables doesn't seem to be recognized as expected.

Here is an example of the markdown and corresponding plugin output:
markdown-problem

And here the resulting (expected) output viewed online (bitbucket).
markdown-working

I'm using version 0.7 strait from the Notepad++ Plugin Manager.

CSS child selector

Using the child selector > in the Custom CSS does not work as expected. It appears to get parsed into the HTML entity &gt; during export to HTML.

Strikethrough effect missing

Hi,

Just noticed that I can't get the strikethrough effect in the extension.

Steps to replicate:
Add any string encapsulated with ~~ (for example ~~example~~)
Expected behavior:
Encapsulated string is enhanced with the strikethrough effect
Actual behavior:
Effect is not applied, ~'s are shown in the panel

Version 0.7.1.30398, installed through Plugin Manager.

Rendering of inline images with relative paths is not working

The viewer panel does not render images that are in a path relative to the file being edited. It does render remote images just fine, however. Examples have been included that demonstrate a failed render and a successful render. In both cases, the Export/HTML command will produce a document that is able to render in a browser since the links are properly formatted in both example cases.

Example1 - render failure:

  • Image exists in a relative directory: ./images
  • File target for the markdown link: ./images/someImage.png
  • Goal - render the image inline in the viewer panel
  • Markdown - ![Test](./images/someImage.png)
  • Result - Image is not rendered; an [X] placeholder is there instead

Example2 - render success:

Compiling error when merge to Unicode

Hi,

I have checkout the latest master and try to compile with VS2015 Update 3. I get the Unicode merge error below, do you have any idea what is the problem ?

1>------ Rebuild All started: Project: MarkdownViewerPlusPlus, Configuration: Debug Any CPU ------
1>  Transitive merge
1>  Merged assemblies: C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\MarkdownViewerPlusPlus\obj\Debug\MarkdownViewerPlusPlus.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\CommonMark.NET.0.15.1\lib\net40-client\CommonMark.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\HtmlRenderer.Core.1.5.1-beta1\lib\net40-client\HtmlRenderer.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\HtmlRenderer.PdfSharp.1.5.1-beta1\lib\net40-client\HtmlRenderer.PdfSharp.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\HtmlRenderer.WinForms.1.5.1-beta1\lib\net40-client\HtmlRenderer.WinForms.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\PDFsharp.1.50.4000-beta3b\lib\net20\PdfSharp.Charting.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\PDFsharp.1.50.4000-beta3b\lib\net20\PdfSharp.dll;C:\Users\JLim\Workspace\Development\NetSource\MarkdownViewerPlusPlus-master\packages\Svg.2.3.0\lib\net35\Svg.dll;
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Fenced code blocks

When exporting to HTML, the <pre> and <code> tags for fenced code blocks are separated, and the <code> tag indented on a new line.

    <pre>
        <code>aaa
...
</code>
    </pre>

Something like the above occurs, and as a result the first line of code is preceded by whitespace, and an extra line is included at the end:

        aaa
...

The HTML to Clipboard produces the expected HTML:

<pre><code>aaa
...
</code></pre>

And the desired result:

aaa
...

RTL support

Thanks for the plugin, it seems really great,
Just wanna offer to add rtl support, as you can see in the image below, on the right side is the raw text from NPP and on the left there's the markdown preview, the order of the words in the MD preview is in reverse and in LTR. The pdf export had some issues with rlt too.
capture

As for checking if NPP is currently in RTL or LTR Yaron from the forum showed me here a few days ago how to that.

T: Add an option for custom CSS

To be able to format e.g. <ul>/<li> elements in the rendered/exported HTML, provide an option to allow the free-text addition of custom CSS rules.

Ignores last character

There seems to be an off-by-one error somewhere because the last character of the document is ignored.

  1. Open a blank document
  2. Open the MarkdownViewer++ window
  3. Type a - nothing happens
  4. Type b, now only the a shows up in the window

Plugin prevents Notepad++ starting up

When the MarkdownViewerPlusPlus plug-in is enabled, NotePad++ does not start up correctly. It appears in Task Manager, but the window does not show. The problem is resolved when MarkdownViewerPlusPlus.dll is moved to the disabled subfolder. Removing all other plugins apart from MarkdownViewerPlusPlus did not fix the problem.

It may just be coincidence, but http://notepad-plus-plus.org is not accessible at the moment.

System details:
Windows 10 Pro 64-bit (1511)
Notepad++ 5.5.1 32-bit
MarkdownViewerPlusPlus 0.7.1

T: Add configurable update timeout

A setting of milliseconds how long to wait after a keystroke before refreshing the renderer, to optimize live editing in larger documents.

[Feature Request] Add CriticMarkup support

Hi Savas,

Thank you so much for creating this plugin! Like you I have Notepad++ open practically 24/7 and in recent weeks have started to use it a lot for markdown. I recently came across CriticMarkup and though I realize it is intended for plain text, I am wanting to use it most often when collaborating with others on markdown text files.

I've attempted to get CriticMarkup to work in Sublime Text, Atom and Vim but after several days of trying, I'm now admitting defeat. I don't know these other editors very well (much less compared to Notepad++) so I'm hoping you might be able to add CriticMarkup either as a separate plugin or ideally as an integrated feature to MarkdownViewerPlusPlus.

Thanks again for your plugin -- it has helped me be very productive. 😃

line breaks within paragraph not recognized

single carriage return in text isn't displayed in preview as a new line within paragraph, it is displayed as a continuation on the same line.

eg: the text:
this is line 1
this is line 2

gets rendered as "this is line 1 this is line 2"

CSS color is not rendered

Hi,

I was trying to add some customized CSS, but it wasn't rendered well. I'm not sure if it's caused by the HTMLRenderer or in this plugin. The exported html can be rendered as expected in Chrome, IE, Firefox.

body {
    font-family: "Source Sans Pro",sans-serif;
    font-size: 13px;
    color: #3f3f3f
}
h1 {    font-size: 25px; }
h2 {    font-size: 23px; }
h3 {    font-size: 21px; }
h4 {    font-size: 19px; }
h5 {    font-size: 16px; }
h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
} 
blockquote {
  background: #f9f9f9;
  border-left: 10px solid #ccc;
  padding-top: 5px;
  padding-bottom: 5px;
  quotes: "\201C""\201D""\2018""\2019";
}

code {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 95%;
    white-space: pre;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -o-pre-wrap;
    background: rgb(200,200,200);
    display: inline-block;
}
pre code {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 95%;
    line-height: 140%;
    white-space: pre;
    white-space: pre-wrap;
    white-space: -moz-pre-wrap;
    white-space: -o-pre-wrap;
    background: #faf8f0;
    display: block;
    padding: 0.5em 1em;
    border: 1px solid #bebab0;
}

Feature Request: smart quotes

I don't know if this is a common thing in markdown or not, so maybe it should be an option instead of a default feature, but it would be nice if the previewer showed smart quotes in its preview. When markdown is entered on sites like Tumblr it does the smart quotes -- though, as I say, I don't know if it's applicable in all situations where markdown is used.

For example:

"this text won't be rendered with smart quotes"

would become:

“this text won’t be rendered with smart quotes”

@import

While trying to work around #34, found that it was not possible to use @import to include an external
stylesheet (nor e.g. Google Fonts).

The @import statement must precede all other rules (except @charset rules). However a short comment and rule (... page-break-inside:avoid;) is placed before any custom CSS rules. The at-rule is therefore not processed.

feature request: open local md file in n++ when clicking on preview link

As a local github-wiki page editor
I want to open a local md file when clicking a link in the preview
To make managing lokal wikies easier.

Example

in github i have these pages:

locally i have

  • ...\APhotoManager.wiki\Image-View.md
  • ...\APhotoManager.wiki\History.md

When Notepad++ has loaded History.md and when i click on \[Image-View](Image-View) in the preview
i would like to open Image-View.md in the npp editor if it exists

the missing ".md" from the link could come from "Plugins/MarkDownViewer++/Options/General/FileExtensions=md"

How to setup supported np++ version?

The release 64 bit dll is work on np++ 7.3.3, however, it doesn't work if I build from source. It comes up with a message that MarkdownViewerPlusPlus.dll is not compatible with the current version of Notepad++.

Sub-item bullets off

For some reason in the preview window, the sub-item bullets are off. The first bullet seems fine, but the first sub bullet seems to be a "o" character and a sub sub bullet is a spade. I'm not sure if this is intentional. If I export as HTML or print, it looks good, but export as PDF and the preview shows this.

image

PDF font for nested lists

When I export as PDF my lists have odd glyphs:

  • tier 1 a small black dot.
    • tier 2 a larger white circle.
      • tier 3 a black spade (card symbol).

HTML version viewed in chrome looks much better. So is there a fix for the PDF version?
I'm on Windows 8.1.

I: SVG images are not rendered

Hi

Currently SVG images are not being rendered (compared to e.g. PNG images). This is because the used HTMLRenderer/.net does not support the rendering natively. Therefore, an extra event handler for SVG rendering should be added, for example via https://github.com/vvvv/SVG

Best

problems displaying lists

Using bullet lists sometimes causes issues as displayed in the following image:

(1) Bullets are 1 line above the corresponding paragraph text (ie: some '\n' added before the text?)
(2) Random numbers appear in before indented paragraphs or indented paragraphs with bullet list.

image

Not recognizing file extension

I tried v0.5.0 and set the file extension option, however I get this in the render window when I open a file that should be rendered:

Your configuration settings do not include the currently selected file extension.
The rendered file extensions are 'md'.
The current file is 'ExternalPluginSupport.md'. False 

If I edit the file the False turns to True. If I manually select View > Refresh the file does get rendered, however it gets reset to that warning message if I try to edit the file.

local images

It cant render "![foo](train.jpg)” or i miss smth?

Broken picture in preview, exported pdf, printed pdf, but shows properly if open html in web-browser.

Formatting toolbar

Would it be possible to add an optional toolbar with markdown formatting (for example, this text editor that's adding an issue)? Basically, it inserts the proper characters for whatever formatting is selected, or wraps highlighted text in said characters. This would be really helpful for people like me who haven't memorized every single Markdown format.

white border

If paste "solarized-light.css" (for example) to css field preview shows white border. It also renders in pdf. But html view in browser has not any border... Why so?

Thanks, btw, great plugin.

New line with single CRLF

Hi,
I 've been using Atom to create and edit markdown files up to now. It also has a preview plugin, which has an option 'Break on single new line'.
But as I prefer using Notepad++ as an editor, I did some tests to edit and preview markdown files in it. Your plugin is exactly what is needed to preview, only it would be nice, if you could add the same option.

Regards,
Anne-Mie Wauters

T: View generated HTML Code

An addition to the Plugin or View menu should be the possibility to see the rendered HTML Code, either as new file in Notepad++, as a modal dialog or directly switch the rendered view between HTML Code and Rendered view.

The reason/use case may be, that someone wants to use the generated HTML to paste into something else. Now, the rendered file would have to be exported first.

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.