Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render HTML in Markdown Preview #59

Open
markadrake opened this issue May 6, 2021 · 1 comment
Open

Render HTML in Markdown Preview #59

markadrake opened this issue May 6, 2021 · 1 comment

Comments

@markadrake
Copy link

From what I can tell, PanWriter uses the following package to provide the preview pane to markdown files.

https://github.com/markdown-it/markdown-it#markdown-it

There is an option that can be toggled to true that allows HTML to be rendered.

Perhaps we could have a settings dialog to manage some of the default properties?

The latest version, running on Mac, doesn't seem to support it.

Here is my markdown:

image

The preview:

image

@mb21
Copy link
Owner

mb21 commented May 7, 2021

I think I want to keep the default to not support inline HTML in the preview. Because HTML is only one output format when exporting with pandoc, and it won't be included when you export e.g. to Word or LaTeX. But yes, we could add an option...

But what you seem try to do is simply have a table with borders? Try:

| foo | bar |
| --- | --- |
| baz | bim |

or:

---
header-includes: |-
  <style>
  th, td {
    border: 1px solid black;
  }
  </style>
---

| foo | bar |
| --- | --- |
| baz | bim |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants