title: only allow change line and link. disable all other features with marked
body: <p><a href="http://jsfiddle.net/zsvbzwgL/1/" rel="nofollow">http://jsfiddle.net/zsvbzwgL/1/</a></p>
  
  <p>How to only allow change line and link. disable all other features with marked <a href="https://github.com/chjj/marked" rel="nofollow">https://github.com/chjj/marked</a>  ?<br>
  (like font style, header, list style, image ...)</p>
  
  <p>js</p>
  
  <pre><code>marked.setOptions({
    renderer: new marked.Renderer(),
    gfm: false,
    tables: false,
    breaks: false,
    pedantic: false,
    sanitize: true,
    smartLists: true,
    smartypants: false
  });
  
  $('.output').on('click', function() {
    var inputVal = $('.textarea').val();
  
    var decode = marked(inputVal);
    console.log(decode);
  });
  </code></pre>
  
  <p>html</p>
  
  <pre><code>&lt;textarea class="textarea"&gt;&lt;/textarea&gt;
  &lt;div class="output"&gt;output&lt;/div&gt;
  &lt;div class="preview"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>UPDATE</p>
  
  <p>I tried below two way, both not work with strong ...
      // lexer.rules.strong = { exec: function() {} };
      lexer.rules.strong = /(a^) (a^) (a^)/;
  resource <a href="https://github.com/chjj/marked/issues/420" rel="nofollow">https://github.com/chjj/marked/issues/420</a></p>
  
  <pre><code>// d\ne\n\nf\n**c**
  
  var lexer = new marked.Lexer();
  
  lexer.rules.heading = /(a^) (a^) (a^)/;
  lexer.rules.strong = /(a^) (a^) (a^)/;  // not work
  lexer.rules.em = /(a^) (a^) (a^)/;
  lexer.rules.code = /(a^) (a^) (a^)/;
  
  var b = marked.parser(lexer.lex(d));
  console.log(b);
  &gt;&gt;
  &lt;p&gt;d
  e&lt;/p&gt;
  &lt;p&gt;f
  &lt;strong&gt;c&lt;/strong&gt;&lt;/p&gt;
  </code></pre>
  
  <p>found this in marked.js,  </p>
  
  <pre><code>var inline = {
    escape: /^\\([\\`*{}\[\]()#+\-.!_&gt;])/,
    autolink: /^&lt;([^ &gt;]+(@|:\/)[^ &gt;]+)&gt;/,
    url: noop,
    tag: /^&lt;!--[\s\S]*?--&gt;|^&lt;\/?\w+(?:"[^"]*"|'[^']*'|[^'"&gt;])*?&gt;/,
    link: /^!?\[(inside)\]\(href\)/,
    reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/,
    nolink: /^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,
    strong: /^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,
    em: /^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
    code: /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,
    br: /^ {2,}\n(?!\s*$)/,
    del: noop,
    text: /^[\s\S]+?(?=[\\&lt;!\[_*`]| {2,}\n|$)/
  };
  </code></pre>
  
  <p>but <code>marked.InlineLexer.rules.strong = /(a^) (a^) (a^)/;</code> or above way <code>lexer.rules.strong</code> both still not work ...</p>