Coder Social home page Coder Social logo

html-to-mrkdwn's People

Contributors

bkeepers avatar devrelm avatar greenkeeper[bot] avatar pkaminski avatar wilhelmklopp 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

Watchers

 avatar  avatar

html-to-mrkdwn's Issues

Tables

Tables are currently converted to their markdown equivalent and then rendered as plain text. That is very painful on the eyes.

An in-range update of jsdom is breaking the build 🚨

Version 11.12.0 of jsdom was just published.

Branch Build failing 🚨
Dependency jsdom
Current Version 11.11.0
Type dependency

This version is covered by your current version range and after updating it in your project the build failed.

jsdom is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • continuous-integration/travis-ci/push: The Travis CI build failed (Details).

Commits

The new version differs by 22 commits.

  • 4d26c67 Version 11.12.0
  • d6688e5 Implement Element.prototype.closest()
  • 9191218 Upgrade NWSAPI to v2.0.7
  • 500a209 Change storageQuota to operate on code units, not bytes
  • 23d67eb Add the storageQuota option
  • b4db242 Remove unused form-data-symbols.js file
  • 70fd739 Fix a few entries in the changelog
  • eae1062 Upgrades cssstyle dependency to ^1.0.0
  • 022c204 Update hosts in Travis configuration
  • 2761d3c HashChangeEvent and PopStateEvent should no longer bubble
  • f1270e7 Roll Web Platform Tests
  • d6f8a97 Enable Blob-slice.html test in Node.js v10
  • 3afbc0f Implement Web storage - localStorage, sessionStorage, StorageEvent
  • 7b4db76 Handle Node.js v6 timeout in execution-timing tests
  • a5a7785 Run failing tests to confirm their status

There are 22 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Images

Unfortunately, I don't think Slack supports images in message formatting.

Hide details in rendered output

GitHub allows you to use <details> and <summary> tags to collapse content that is noisy or may not always be relevant. This

This is the summary

These are all the details that should be hidden.

Link to code in markdown

If you paste a link to code on GitHub in a comment, the code snippet gets rendered as a table. This should probably just be translated into a link to the file and a code snippet in mrkdwn.

slack_-_github

Generalize code block rule

I am using this package to convert rendered Jira comment HTML, and their code blocks look something like:

<div class="code panel" style="border-width: 1px;">
    <div class="codeContent panelContent">
        <pre class="code-sql">...</pre>
    </div>
</div>

Could we generalize the highlightedCodeBlock rule to support this DOM structure? Should all <pre> tags be converted to triple backtick blocks?

checkboxes

These could be translated into real unicode characters like ☐ and ☑︎.

slack_-_github

Rendering of binary files should be disabled?

This is what happens when you post a link to for example an image file:

image

Not sure if there is a way we can handle this in html-to-mrkdwn or if we should detect for example image file extensions in integrations/slack and just not send them to html-to-mrkdwn

Consecutive headers need a newline between them

When creating a Release on GitHub with two headers in the description like so:

## Released

### Changed

the /integrations/slack integration created a slack post like this:

image

My guess is that the markdown is being converted to an <h2> and <h3> with no space between them, and that html-to-mrkdwn is not going out of its way to add a newline back.

Because the <h1> through <h6> tags default to display: block, they naturally stack when viewed in a browser. As such, the expected behavior should be that headers – once converted – always begin and end with a newline.

Version 10 of node.js has been released

Version 10 of Node.js (code name Dubnium) has been released! 🎊

To see what happens to your code in Node.js 10, Greenkeeper has created a branch with the following changes:

  • Added the new Node.js version to your .travis.yml

If you’re interested in upgrading this repo to Node.js 10, you can open a PR with these changes. Please note that this issue is just intended as a friendly reminder and the PR as a possible starting point for getting your code running on Node.js 10.

More information on this issue

Greenkeeper has checked the engines key in any package.json file, the .nvmrc file, and the .travis.yml file, if present.

  • engines was only updated if it defined a single version, not a range.
  • .nvmrc was updated to Node.js 10
  • .travis.yml was only changed if there was a root-level node_js that didn’t already include Node.js 10, such as node or lts/*. In this case, the new version was appended to the list. We didn’t touch job or matrix configurations because these tend to be quite specific and complex, and it’s difficult to infer what the intentions were.

For many simpler .travis.yml configurations, this PR should suffice as-is, but depending on what you’re doing it may require additional work or may not be applicable at all. We’re also aware that you may have good reasons to not update to Node.js 10, which is why this was sent as an issue and not a pull request. Feel free to delete it without comment, I’m a humble robot and won’t feel rejected 🤖


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper App’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Truncated code blocks show triple back ticks

When Slack truncates messages in the middle of a code block, it just shows six backticks:

banners_and_alerts_and_slack_-_github

When you expand the message it renders fine:

slack_-_github

I'm not sure there is much we can do about this, but wanted to open an issue to at least report it.

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.