We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const github = require('github-api'); const gh = new github({ username: "**********", password: "**********" }); const markdown = gh.getMarkdown(); var options = { text: '# Hello world!' }; markdown.render(options).then(function({data:html}) { console.log(html) });
So I get flowing string.
<h1> <a id="user-content-hello-world" class="anchor" href="#hello-world" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Hello world!</h1>
<script src="GitHub.bundle.js"></script> <script> const gh = new GitHub({ username: "**********", password: "**********" }); const markdown = gh.getMarkdown(); var options = { text: '# Hello world!' }; markdown.render(options).then(function({data:html}) { console.log(html) }); </script>
I get a null,so please help me.......
null
The text was updated successfully, but these errors were encountered:
Render markdown in the browser.
51ef4b7
Fixed github-tools#451. Got the code from PR github-tools#505.
dd6a3b1
Fix browser markdown (#548)
09384e3
Got the code from PR #505. Fixes #451.
Successfully merging a pull request may close this issue.
Firstly I test this code in node
So I get flowing string.
But when I run this code in browser
I get a
null
,so please help me.......The text was updated successfully, but these errors were encountered: