evilstreak / markdown-js

A Markdown parser for javascript
7.69k stars 863 forks source link

Fix: never render <null> or <undefined> html tags #88

Open jvatic opened 11 years ago

jvatic commented 11 years ago

If a preprocessor needs to remove a tag, this patch allows it to do so by making the tag null or undefined.

evilstreak commented 10 years ago

Is there a reason to blank out a node rather than removing it from the tree entirely (by using splice, for example)?

Do you an example use case for this?