25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
300 B

  1. var inline = {
  2. abbr: 1,
  3. b: 1,
  4. big: 1,
  5. code: 1,
  6. del: 1,
  7. em: 1,
  8. i: 1,
  9. ins: 1,
  10. label: 1,
  11. q: 1,
  12. small: 1,
  13. span: 1,
  14. strong: 1,
  15. sub: 1,
  16. sup: 1
  17. }
  18. module.exports = {
  19. use: function(item) {
  20. return !item.c && !inline[item.name] && (item.attrs.style || '').indexOf('display:inline') == -1
  21. }
  22. }