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

Adding inline code and code block support #50

Open
sunknudsen opened this issue Oct 6, 2020 · 1 comment
Open

Adding inline code and code block support #50

sunknudsen opened this issue Oct 6, 2020 · 1 comment

Comments

@sunknudsen
Copy link

sunknudsen commented Oct 6, 2020

Everything is converted except for <code>, <script>, <style>, and <pre> tags.

In the context of markdown strings, it would be amazing if inline code and code block snippets could be ignored (considering adding smartquotes to transpile-md-to-json.

const smartquotes = require("smartquotes");
 
const text = smartquotes("# The typography \"rabbit hole\"\n\nTo enter the rabbit's home, once must first enter the rabbit hole using command `enter \"rabbit hole\"`.\n\n```javascript\nconst rabbit = \"hole\"\n```");

console.log(text)

smartquotes

Current implementation breaks code.

@sunknudsen
Copy link
Author

Documenting other markdown edge cases here…

[![How to self-host a hardened strongSwan IKEv2/IPsec VPN server for iOS and macOS - YouTube](how-to-self-host-a-hardened-strongswan-ikev2-ipsec-vpn-server-for-ios-and-macos.png)](https://www.youtube.com/watch?v=HY3F_vHuTFQ "How to self-host a hardened strongSwan IKEv2/IPsec VPN server for iOS and macOS - YouTube")

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

1 participant