Comments (4)
The following markup parsed with the Maruku dialect produces a page anchor:
# Heading
{:#foo}
A [link to foo](#foo)
Is that what you're after?
from markdown-js.
FYI: I'm using it in a browser. I was not specifying a dialect, as my pages are already written and work with Gruber. I have tried specifying the dialect like this - is this correct?
var html = markdown.toHTML(txt, "Maruku");
{:#foo} just literally displays on the page as written... it is not replaced.
If there's documentation I'm missing somewhere I'm happy to read it and not bother anyone. I just couldn't find anything beyond the readme and reading the code.
Thanks!
from markdown-js.
That's the right way to specify a dialect. It produces the right markup for me using the barebones example from the readme in Safari 6.
Could you provide an example of markup which is failing for you, and also which browser it's failing in?
To answer your other question, there's no documentation beyond the readme and the code.
from markdown-js.
Thanks for your help. I was able to get a simple example working in Safari. It was not working in Chrome. However, as usual I think Chrome is holding on to it's cache waaaaaay to tightly, as clearing my cache set me straight.
Thanks!
from markdown-js.
Related Issues (20)
- Link to `lib/markdown.js` not working in readme HOT 1
- Strikethrough component doesn't work. HOT 1
- Code Syntax Highlight
- Unable to resolve module `../../constants/index` from `D:\GitHub\medred\app\src\ stories\screens\Specialty\index.js`: could not resolve `D:\GitHub\medred\app\src \stories\constants\index' as a folder: it did not contain a package, nor an inde x file
- Can't distinguish code language HOT 1
- support parase "[TOC]"? HOT 1
- [BUG] href not correctly parsed when text and its url both contains underscore. HOT 3
- *** Text *** parse was strong , but Italic not effective HOT 1
- Two links following one another
- Add note to README that this repo is not maintained HOT 2
- The speed of the Markdown-js is too bad. HOT 2
- Load external Markdown File in html.
- Inline HTML is escaped? HOT 2
- Vulnerability issue HOT 2
- 🚨 Potential Security Vulnerability HOT 1
- Trying to get in touch regarding a security issue HOT 1
- Images not getting converted properly in certain cases
- (wrong repository) HOT 1
- the "table" cannot use HOT 4
- how to convert .md file into .html
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from markdown-js.