GithubHelp home page GithubHelp logo

bbcode-to-markdown's People

Contributors

akhoury avatar bdharrington7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bbcode-to-markdown's Issues

Quote names not showing up correctly after 1f21f5fb9f24808dc2c7bddff4d0b5750a675714

Has to do with html encoding.

Test:

  {
    "raw": "[quote=&quot;aziz&quot;]<br />test<br />[/quote]<br /><br />hey!",
    "html": "<small>@aziz:</small><br><blockquote><br />test<br /></blockquote><br /><br />hey!",
    "md": "@aziz:\n\n> test\n\nhey!"
  }

Result:

'<small>@":</small><br><blockquote><br />test<br /></blockquote><br /><br />hey!'                          
!=                                                                                                         
'<small>@aziz:</small><br><blockquote><br />test<br /></blockquote><br /><br />hey!'                       

/home/ubuntu/workspace/test/test.js:8                                                                      
                throw JSON.stringify(sample, null, 2) + ", " + what + "() Failed, " + i;                   
                ^                                                                                          
{                                                                                                          
  "raw": "[quote=&quot;aziz&quot;]<br />test<br />[/quote]<br /><br />hey!",                               
  "html": "<small>@aziz:</small><br><blockquote><br />test<br /></blockquote><br /><br />hey!",            
  "md": "@aziz:\n\n> test\n\nhey!"                                                                         
}, bbcodeToHTML() Failed, 6

crash when converting a post with JavaScript in it

Input:

HTA app is currently this:
```
<HTML>
<HEAD>
   <HTA:APPLICATION
       ID="oHTA"
       APPLICATIONNAME="myApp"
       ICON="http://charlatanshanty.com/icon.ico">
<script type="text/javascript">
function show()
    {
    alert("show alert");
    }
    </script>
</head>
<body onload="show()">
</body>
</html>
```

Expected output:
(unchanged)

Actual output:

HTA app is currently this:
\`\`\`
\`\`\`

TypeError: Cannot read property 'implementation' of undefined
    at Function.getListeners (/home/ben/discoconvert/akhoury-nodebb-plugin-import/node_modules/jsdom-nogyp/lib/jsdom/level2/events.js:176:74)
    at Function.dispatch (/home/ben/discoconvert/akhoury-nodebb-plugin-import/node_modules/jsdom-nogyp/lib/jsdom/level2/events.js:192:40)
    at Object.events.EventTarget.dispatchEvent (/home/ben/discoconvert/akhoury-nodebb-plugin-import/node_modules/jsdom-nogyp/lib/jsdom/level2/events.js:287:33)
    at Object.DOMWindow.dispatchEvent (/home/ben/discoconvert/akhoury-nodebb-plugin-import/node_modules/jsdom-nogyp/lib/jsdom/browser/index.js:114:40)
    at /home/ben/discoconvert/akhoury-nodebb-plugin-import/node_modules/jsdom-nogyp/lib/jsdom/browser/index.js:50:16
    at nextTickCallbackWith0Args (node.js:419:9)
    at process._tickDomainCallback (node.js:389:13)

Add spoiler tag

Hey Aziz, almost same kind of dillemma as with the html-to-markdown

Just wanted to add the [spoiler] tag, but if you can point me in the right direction I can make a PR

Thanks!

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.