File: README.md
This repo is now Archived under Pulsar-Edit, as it is now bundled into the core editor [PR#374](https://github.com/pulsar-edit/pulsar/pull/374)
Markdown Preview package
Show the rendered HTML markdown to the right of the current editor using ctrl-shift-m.
It is currently enabled for .markdown, .md, .mdown, .mkd, .mkdown, .ron, and .txt files.
Customize
By default Markdown Preview uses the colors of the active syntax theme. Enable Use GitHub.com style in the package settings to make it look closer to how markdown files get rendered on github.com.
To customize even further, the styling can be overridden in your styles.less file. For example:
.markdown-preview.markdown-preview {
background-color: #444;
}File: CONTRIBUTING.md
File: LICENSE.md
Copyright (c) 2014 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
File: package.json
{
"name": "markdown-preview",
"version": "0.160.2",
"main": "./lib/main",
"description": "Open a rendered version of the Markdown in the current editor with ctrl-shift-m.",
"repository": "https://github.com/pulsar-edit/markdown-preview",
"license": "MIT",
"engines": {
"atom": "*"
},
"dependencies": {
"cheerio": "^1.0.0-rc.3",
"dompurify": "^2.0.17",
"emoji-images": "^0.1.1",
"fs-plus": "^3.0.0",
"marked": "^0.7.0",
"underscore-plus": "^1.0.0",
"yaml-front-matter": "^4.0.0"
},
"devDependencies": {
"temp": "^0.8.1"
},
"deserializers": {
"MarkdownPreviewView": "createMarkdownPreviewView"
},
"configSchema": {
"breakOnSingleNewline": {
"type": "boolean",
"default": false,
"description": "In Markdown, a single newline character doesn't cause a line break in the generated HTML. In GitHub Flavored Markdown, that is not true. Enable this config option to insert line breaks in rendered HTML for single newlines in Markdown source."
},
"liveUpdate": {
"type": "boolean",
"default": true,
"description": "Re-render the preview as the contents of the source changes, without requiring the source buffer to be saved. If disabled, the preview is re-rendered only when the buffer is saved to disk."
},
"openPreviewInSplitPane": {
"type": "boolean",
"default": true,
"description": "Open the preview in a split pane. If disabled, the preview is opened in a new tab in the same pane."
},
"allowUnsafeProtocols": {
"type": "boolean",
"default": false,
"description": "Allow HTML attributes to use protocols normally considered unsafe such as file:// and absolute paths on Windows."
},
"grammars": {
"type": "array",
"default": [
"source.gfm",
"source.litcoffee",
"text.html.basic",
"text.md",
"text.plain",
"text.plain.null-grammar"
],
"description": "List of scopes for languages for which previewing is enabled. See this README for more information on finding the correct scope for a specific language."
},
"useGitHubStyle": {
"title": "Use GitHub.com style",
"type": "boolean",
"default": false,
"description": "Use the same CSS styles for preview as the ones used on GitHub.com."
}
}
}
File: spec/fixtures/subdir/áccéntéd.md
Testing
File: spec/fixtures/subdir/code-block.md
Code Block
if a === 3 {
b = 5
}encoding → issue
File: spec/fixtures/subdir/doctype-tag.md
content
File: spec/fixtures/subdir/evil.md
hello
world
File: spec/fixtures/subdir/file with space.md
Testing
File: spec/fixtures/subdir/html-tag.md
contentFile: spec/fixtures/subdir/pre-tag.md
hey
File: spec/fixtures/subdir/simple.md
italic
bold
encoding → issue
File: spec/fixtures/subdir/áccéntéd.md
Testing
File: .github/no-response.yml
Configuration for probot-no-response - https://github.com/probot/no-response
Number of days of inactivity before an issue is closed for lack of response
daysUntilClose: 28
Label requiring a response
responseRequiredLabel: more-information-needed
Comment to post when closing an issue for lack of response. Set to `false` to disable.
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
File: .github/workflows/ci.yml
name: CI
on: [push]
env:
CI: true
jobs:
Test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
channel: [stable, beta]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: UziTech/action-setup-atom@v2
with:
version: ${{ matrix.channel }}
- name: Install dependencies
run: apm install
- name: Run tests
run: atom --test spec