kramdown 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTERS +10 -1
  3. data/VERSION +1 -1
  4. data/bin/kramdown +15 -12
  5. data/lib/kramdown/converter/base.rb +2 -2
  6. data/lib/kramdown/converter/html.rb +22 -14
  7. data/lib/kramdown/converter/kramdown.rb +25 -20
  8. data/lib/kramdown/converter/latex.rb +11 -10
  9. data/lib/kramdown/converter/man.rb +3 -3
  10. data/lib/kramdown/converter/math_engine/mathjax.rb +1 -1
  11. data/lib/kramdown/converter/remove_html_tags.rb +5 -4
  12. data/lib/kramdown/document.rb +1 -1
  13. data/lib/kramdown/element.rb +1 -1
  14. data/lib/kramdown/options.rb +43 -15
  15. data/lib/kramdown/parser/base.rb +6 -0
  16. data/lib/kramdown/parser/html.rb +24 -18
  17. data/lib/kramdown/parser/kramdown/abbreviation.rb +4 -2
  18. data/lib/kramdown/parser/kramdown/codespan.rb +1 -1
  19. data/lib/kramdown/parser/kramdown/emphasis.rb +6 -1
  20. data/lib/kramdown/parser/kramdown/escaped_chars.rb +1 -1
  21. data/lib/kramdown/parser/kramdown/extensions.rb +6 -6
  22. data/lib/kramdown/parser/kramdown/html.rb +26 -23
  23. data/lib/kramdown/parser/kramdown/html_entity.rb +1 -1
  24. data/lib/kramdown/parser/kramdown/link.rb +4 -4
  25. data/lib/kramdown/parser/kramdown/list.rb +19 -18
  26. data/lib/kramdown/parser/kramdown/smart_quotes.rb +1 -1
  27. data/lib/kramdown/parser/kramdown.rb +5 -4
  28. data/lib/kramdown/utils/entities.rb +661 -5
  29. data/lib/kramdown/utils/html.rb +1 -1
  30. data/lib/kramdown/utils/unidecoder.rb +9 -13
  31. data/lib/kramdown/version.rb +1 -1
  32. data/man/man1/kramdown.1 +18 -0
  33. data/test/test_files.rb +8 -0
  34. data/test/testcases/block/04_header/with_header_links.html +7 -0
  35. data/test/testcases/block/04_header/with_header_links.options +2 -0
  36. data/test/testcases/block/04_header/with_header_links.text +8 -0
  37. data/test/testcases/block/04_header/with_line_break.html +1 -0
  38. data/test/testcases/block/04_header/with_line_break.text +1 -0
  39. data/test/testcases/block/08_list/escaping.html +4 -0
  40. data/test/testcases/block/08_list/escaping.text +4 -0
  41. data/test/testcases/block/08_list/nested_compact.kramdown +7 -0
  42. data/test/testcases/block/08_list/nested_compact.text +6 -0
  43. data/test/testcases/block/08_list/special_cases.html +10 -0
  44. data/test/testcases/block/08_list/special_cases.text +9 -0
  45. data/test/testcases/block/09_html/cdata_section.html +10 -0
  46. data/test/testcases/block/09_html/cdata_section.text +10 -0
  47. data/test/testcases/block/09_html/html_to_native/table_simple.html +3 -0
  48. data/test/testcases/block/09_html/html_to_native/table_simple.text +3 -0
  49. data/test/testcases/block/12_extension/options.html +2 -2
  50. data/test/testcases/block/12_extension/options2.html +2 -2
  51. data/test/testcases/block/14_table/table_with_footnote.html +2 -2
  52. data/test/testcases/block/16_toc/toc_with_footnotes.html +2 -2
  53. data/test/testcases/span/02_emphasis/normal.html +6 -1
  54. data/test/testcases/span/02_emphasis/normal.text +5 -0
  55. data/test/testcases/span/04_footnote/backlink_inline.html +10 -10
  56. data/test/testcases/span/04_footnote/backlink_text.html +2 -2
  57. data/test/testcases/span/04_footnote/footnote_link_text.html +12 -0
  58. data/test/testcases/span/04_footnote/footnote_link_text.options +1 -0
  59. data/test/testcases/span/04_footnote/footnote_link_text.text +4 -0
  60. data/test/testcases/span/04_footnote/footnote_nr.html +3 -3
  61. data/test/testcases/span/04_footnote/footnote_prefix.html +3 -3
  62. data/test/testcases/span/04_footnote/inside_footnote.html +6 -6
  63. data/test/testcases/span/04_footnote/markers.html +10 -10
  64. data/test/testcases/span/04_footnote/placement.html +2 -2
  65. data/test/testcases/span/04_footnote/regexp_problem.html +2 -2
  66. data/test/testcases/span/04_footnote/without_backlink.html +2 -2
  67. data/test/testcases/span/abbreviations/abbrev.html +4 -0
  68. data/test/testcases/span/abbreviations/abbrev.text +7 -0
  69. data/test/testcases/span/abbreviations/in_footnote.html +2 -2
  70. metadata +21 -9
@@ -27,6 +27,8 @@ module Kramdown
27
27
  # This table is not used directly -- Entity objects are automatically created from it and put
28
28
  # into a Hash map when this file is loaded.
29
29
  ENTITY_TABLE = [
30
+
31
+ # html4
30
32
  [913, 'Alpha'],
31
33
  [914, 'Beta'],
32
34
  [915, 'Gamma'],
@@ -79,6 +81,8 @@ module Kramdown
79
81
  [977, 'thetasym'],
80
82
  [978, 'upsih'],
81
83
  [982, 'piv'],
84
+ [988, 'Gammad'],
85
+ [989, 'gammad'],
82
86
  [8204, 'zwnj'],
83
87
  [8205, 'zwj'],
84
88
  [8206, 'lrm'],
@@ -210,6 +214,18 @@ module Kramdown
210
214
  [189, 'frac12'],
211
215
  [188, 'frac14'],
212
216
  [190, 'frac34'],
217
+ [8531, 'frac13'],
218
+ [8532, 'frac23'],
219
+ [8533, 'frac15'],
220
+ [8534, 'frac25'],
221
+ [8535, 'frac35'],
222
+ [8536, 'frac45'],
223
+ [8537, 'frac16'],
224
+ [8538, 'frac56'],
225
+ [8539, 'frac18'],
226
+ [8540, 'frac38'],
227
+ [8541, 'frac58'],
228
+ [8542, 'frac78'],
213
229
  [191, 'iquest'],
214
230
  [192, 'Agrave'],
215
231
  [193, 'Aacute'],
@@ -311,6 +327,646 @@ module Kramdown
311
327
  [8194, 'ensp'],
312
328
  [8195, 'emsp'],
313
329
  [8201, 'thinsp'],
330
+
331
+ # html5
332
+ [10218, 'Lang'],
333
+ [10219, 'Rang'],
334
+ [10220, 'loang'],
335
+ [10221, 'roang'],
336
+ [10229, 'xlarr'],
337
+ [10229, 'longleftarrow'],
338
+ [10229, 'LongLeftArrow'],
339
+ [10230, 'xrarr'],
340
+ [10230, 'longrightarrow'],
341
+ [10230, 'LongRightArrow'],
342
+ [10231, 'xharr'],
343
+ [10231, 'longleftrightarrow'],
344
+ [10231, 'LongLeftRightArrow'],
345
+ [10232, 'xlArr'],
346
+ [10232, 'Longleftarrow'],
347
+ [10232, 'DoubleLongLeftArrow'],
348
+ [10233, 'xrArr'],
349
+ [10233, 'Longrightarrow'],
350
+ [10233, 'DoubleLongRightArrow'],
351
+ [10234, 'xhArr'],
352
+ [10234, 'Longleftrightarrow'],
353
+ [10234, 'DoubleLongLeftRightArrow'],
354
+ [10236, 'xmap'],
355
+ [10236, 'longmapsto'],
356
+ [10239, 'dzigrarr'],
357
+ [10498, 'nvlArr'],
358
+ [10499, 'nvrArr'],
359
+ [10500, 'nvHarr'],
360
+ [10501, 'Map'],
361
+ [10508, 'lbarr'],
362
+ [10509, 'rbarr'],
363
+ [10509, 'bkarow'],
364
+ [10510, 'lBarr'],
365
+ [10511, 'rBarr'],
366
+ [10511, 'dbkarow'],
367
+ [10512, 'RBarr'],
368
+ [10512, 'drbkarow'],
369
+ [10513, 'DDotrahd'],
370
+ [10514, 'UpArrowBar'],
371
+ [10515, 'DownArrowBar'],
372
+ [10518, 'Rarrtl'],
373
+ [10521, 'latail'],
374
+ [10522, 'ratail'],
375
+ [10523, 'lAtail'],
376
+ [10524, 'rAtail'],
377
+ [10525, 'larrfs'],
378
+ [10526, 'rarrfs'],
379
+ [10527, 'larrbfs'],
380
+ [10528, 'rarrbfs'],
381
+ [10531, 'nwarhk'],
382
+ [10532, 'nearhk'],
383
+ [10533, 'searhk'],
384
+ [10533, 'hksearow'],
385
+ [10534, 'swarhk'],
386
+ [10534, 'hkswarow'],
387
+ [10535, 'nwnear'],
388
+ [10536, 'nesear'],
389
+ [10536, 'toea'],
390
+ [10537, 'seswar'],
391
+ [10537, 'tosa'],
392
+ [10538, 'swnwar'],
393
+ [10547, 'rarrc'],
394
+ [10549, 'cudarrr'],
395
+ [10550, 'ldca'],
396
+ [10551, 'rdca'],
397
+ [10552, 'cudarrl'],
398
+ [10553, 'larrpl'],
399
+ [10556, 'curarrm'],
400
+ [10557, 'cularrp'],
401
+ [10565, 'rarrpl'],
402
+ [10568, 'harrcir'],
403
+ [10569, 'Uarrocir'],
404
+ [10570, 'lurdshar'],
405
+ [10571, 'ldrushar'],
406
+ [10574, 'LeftRightVector'],
407
+ [10575, 'RightUpDownVector'],
408
+ [10576, 'DownLeftRightVector'],
409
+ [10577, 'LeftUpDownVector'],
410
+ [10578, 'LeftVectorBar'],
411
+ [10579, 'RightVectorBar'],
412
+ [10580, 'RightUpVectorBar'],
413
+ [10581, 'RightDownVectorBar'],
414
+ [10582, 'DownLeftVectorBar'],
415
+ [10583, 'DownRightVectorBar'],
416
+ [10584, 'LeftUpVectorBar'],
417
+ [10585, 'LeftDownVectorBar'],
418
+ [10586, 'LeftTeeVector'],
419
+ [10587, 'RightTeeVector'],
420
+ [10588, 'RightUpTeeVector'],
421
+ [10589, 'RightDownTeeVector'],
422
+ [10590, 'DownLeftTeeVector'],
423
+ [10591, 'DownRightTeeVector'],
424
+ [10592, 'LeftUpTeeVector'],
425
+ [10593, 'LeftDownTeeVector'],
426
+ [10594, 'lHar'],
427
+ [10595, 'uHar'],
428
+ [10596, 'rHar'],
429
+ [10597, 'dHar'],
430
+ [10598, 'luruhar'],
431
+ [10599, 'ldrdhar'],
432
+ [10600, 'ruluhar'],
433
+ [10601, 'rdldhar'],
434
+ [10602, 'lharul'],
435
+ [10603, 'llhard'],
436
+ [10604, 'rharul'],
437
+ [10605, 'lrhard'],
438
+ [10606, 'udhar'],
439
+ [10606, 'UpEquilibrium'],
440
+ [10607, 'duhar'],
441
+ [10607, 'ReverseUpEquilibrium'],
442
+ [10608, 'RoundImplies'],
443
+ [10609, 'erarr'],
444
+ [10610, 'simrarr'],
445
+ [10611, 'larrsim'],
446
+ [10612, 'rarrsim'],
447
+ [10613, 'rarrap'],
448
+ [10614, 'ltlarr'],
449
+ [10616, 'gtrarr'],
450
+ [10617, 'subrarr'],
451
+ [10619, 'suplarr'],
452
+ [10620, 'lfisht'],
453
+ [10621, 'rfisht'],
454
+ [10622, 'ufisht'],
455
+ [10623, 'dfisht'],
456
+ [10629, 'lopar'],
457
+ [10630, 'ropar'],
458
+ [10635, 'lbrke'],
459
+ [10636, 'rbrke'],
460
+ [10637, 'lbrkslu'],
461
+ [10638, 'rbrksld'],
462
+ [10639, 'lbrksld'],
463
+ [10640, 'rbrkslu'],
464
+ [10641, 'langd'],
465
+ [10642, 'rangd'],
466
+ [10643, 'lparlt'],
467
+ [10644, 'rpargt'],
468
+ [10645, 'gtlPar'],
469
+ [10646, 'ltrPar'],
470
+ [10650, 'vzigzag'],
471
+ [10652, 'vangrt'],
472
+ [10653, 'angrtvbd'],
473
+ [10660, 'ange'],
474
+ [10661, 'range'],
475
+ [10662, 'dwangle'],
476
+ [10663, 'uwangle'],
477
+ [10664, 'angmsdaa'],
478
+ [10665, 'angmsdab'],
479
+ [10666, 'angmsdac'],
480
+ [10667, 'angmsdad'],
481
+ [10668, 'angmsdae'],
482
+ [10669, 'angmsdaf'],
483
+ [10670, 'angmsdag'],
484
+ [10671, 'angmsdah'],
485
+ [10672, 'bemptyv'],
486
+ [10673, 'demptyv'],
487
+ [10674, 'cemptyv'],
488
+ [10675, 'raemptyv'],
489
+ [10676, 'laemptyv'],
490
+ [10677, 'ohbar'],
491
+ [10678, 'omid'],
492
+ [10679, 'opar'],
493
+ [10681, 'operp'],
494
+ [10683, 'olcross'],
495
+ [10684, 'odsold'],
496
+ [10686, 'olcir'],
497
+ [10687, 'ofcir'],
498
+ [10688, 'olt'],
499
+ [10689, 'ogt'],
500
+ [10690, 'cirscir'],
501
+ [10691, 'cirE'],
502
+ [10692, 'solb'],
503
+ [10693, 'bsolb'],
504
+ [10697, 'boxbox'],
505
+ [10701, 'trisb'],
506
+ [10702, 'rtriltri'],
507
+ [10703, 'LeftTriangleBar'],
508
+ [10704, 'RightTriangleBar'],
509
+ [10716, 'iinfin'],
510
+ [10717, 'infintie'],
511
+ [10718, 'nvinfin'],
512
+ [10723, 'eparsl'],
513
+ [10724, 'smeparsl'],
514
+ [10725, 'eqvparsl'],
515
+ [10731, 'lozf'],
516
+ [10731, 'blacklozenge'],
517
+ [10740, 'RuleDelayed'],
518
+ [10742, 'dsol'],
519
+ [10752, 'xodot'],
520
+ [10752, 'bigodot'],
521
+ [10753, 'xoplus'],
522
+ [10753, 'bigoplus'],
523
+ [10754, 'xotime'],
524
+ [10754, 'bigotimes'],
525
+ [10756, 'xuplus'],
526
+ [10756, 'biguplus'],
527
+ [10758, 'xsqcup'],
528
+ [10758, 'bigsqcup'],
529
+ [10764, 'qint'],
530
+ [10764, 'iiiint'],
531
+ [10765, 'fpartint'],
532
+ [10768, 'cirfnint'],
533
+ [10769, 'awint'],
534
+ [10770, 'rppolint'],
535
+ [10771, 'scpolint'],
536
+ [10772, 'npolint'],
537
+ [10773, 'pointint'],
538
+ [10774, 'quatint'],
539
+ [10775, 'intlarhk'],
540
+ [10786, 'pluscir'],
541
+ [10787, 'plusacir'],
542
+ [10788, 'simplus'],
543
+ [10789, 'plusdu'],
544
+ [10790, 'plussim'],
545
+ [10791, 'plustwo'],
546
+ [10793, 'mcomma'],
547
+ [10794, 'minusdu'],
548
+ [10797, 'loplus'],
549
+ [10798, 'roplus'],
550
+ [10799, 'Cross'],
551
+ [10800, 'timesd'],
552
+ [10801, 'timesbar'],
553
+ [10803, 'smashp'],
554
+ [10804, 'lotimes'],
555
+ [10805, 'rotimes'],
556
+ [10806, 'otimesas'],
557
+ [10807, 'Otimes'],
558
+ [10808, 'odiv'],
559
+ [10809, 'triplus'],
560
+ [10810, 'triminus'],
561
+ [10811, 'tritime'],
562
+ [10812, 'iprod'],
563
+ [10812, 'intprod'],
564
+ [10815, 'amalg'],
565
+ [10816, 'capdot'],
566
+ [10818, 'ncup'],
567
+ [10819, 'ncap'],
568
+ [10820, 'capand'],
569
+ [10821, 'cupor'],
570
+ [10822, 'cupcap'],
571
+ [10823, 'capcup'],
572
+ [10824, 'cupbrcap'],
573
+ [10825, 'capbrcup'],
574
+ [10826, 'cupcup'],
575
+ [10827, 'capcap'],
576
+ [10828, 'ccups'],
577
+ [10829, 'ccaps'],
578
+ [10832, 'ccupssm'],
579
+ [10835, 'And'],
580
+ [10836, 'Or'],
581
+ [10837, 'andand'],
582
+ [10838, 'oror'],
583
+ [10839, 'orslope'],
584
+ [10840, 'andslope'],
585
+ [10842, 'andv'],
586
+ [10843, 'orv'],
587
+ [10844, 'andd'],
588
+ [10845, 'ord'],
589
+ [10847, 'wedbar'],
590
+ [10854, 'sdote'],
591
+ [10858, 'simdot'],
592
+ [10861, 'congdot'],
593
+ [10862, 'easter'],
594
+ [10863, 'apacir'],
595
+ [10864, 'apE'],
596
+ [10865, 'eplus'],
597
+ [10866, 'pluse'],
598
+ [10867, 'Esim'],
599
+ [10868, 'Colone'],
600
+ [10869, 'Equal'],
601
+ [10871, 'eDDot'],
602
+ [10871, 'ddotseq'],
603
+ [10872, 'equivDD'],
604
+ [10873, 'ltcir'],
605
+ [10874, 'gtcir'],
606
+ [10875, 'ltquest'],
607
+ [10876, 'gtquest'],
608
+ [10877, 'les'],
609
+ [10877, 'LessSlantEqual'],
610
+ [10877, 'leqslant'],
611
+ [10878, 'ges'],
612
+ [10878, 'GreaterSlantEqual'],
613
+ [10878, 'geqslant'],
614
+ [10879, 'lesdot'],
615
+ [10880, 'gesdot'],
616
+ [10881, 'lesdoto'],
617
+ [10882, 'gesdoto'],
618
+ [10883, 'lesdotor'],
619
+ [10884, 'gesdotol'],
620
+ [10885, 'lap'],
621
+ [10885, 'lessapprox'],
622
+ [10886, 'gap'],
623
+ [10886, 'gtrapprox'],
624
+ [10887, 'lne'],
625
+ [10887, 'lneq'],
626
+ [10888, 'gne'],
627
+ [10888, 'gneq'],
628
+ [10889, 'lnap'],
629
+ [10889, 'lnapprox'],
630
+ [10890, 'gnap'],
631
+ [10890, 'gnapprox'],
632
+ [10891, 'lEg'],
633
+ [10891, 'lesseqqgtr'],
634
+ [10892, 'gEl'],
635
+ [10892, 'gtreqqless'],
636
+ [10893, 'lsime'],
637
+ [10894, 'gsime'],
638
+ [10895, 'lsimg'],
639
+ [10896, 'gsiml'],
640
+ [10897, 'lgE'],
641
+ [10898, 'glE'],
642
+ [10899, 'lesges'],
643
+ [10900, 'gesles'],
644
+ [10901, 'els'],
645
+ [10901, 'eqslantless'],
646
+ [10902, 'egs'],
647
+ [10902, 'eqslantgtr'],
648
+ [10903, 'elsdot'],
649
+ [10904, 'egsdot'],
650
+ [10905, 'el'],
651
+ [10906, 'eg'],
652
+ [10909, 'siml'],
653
+ [10910, 'simg'],
654
+ [10911, 'simlE'],
655
+ [10912, 'simgE'],
656
+ [10913, 'LessLess'],
657
+ [10914, 'GreaterGreater'],
658
+ [10916, 'glj'],
659
+ [10917, 'gla'],
660
+ [10918, 'ltcc'],
661
+ [10919, 'gtcc'],
662
+ [10920, 'lescc'],
663
+ [10921, 'gescc'],
664
+ [10922, 'smt'],
665
+ [10923, 'lat'],
666
+ [10924, 'smte'],
667
+ [10925, 'late'],
668
+ [10926, 'bumpE'],
669
+ [10927, 'pre'],
670
+ [10927, 'preceq'],
671
+ [10927, 'PrecedesEqual'],
672
+ [10928, 'sce'],
673
+ [10928, 'succeq'],
674
+ [10928, 'SucceedsEqual'],
675
+ [10931, 'prE'],
676
+ [10932, 'scE'],
677
+ [10933, 'prnE'],
678
+ [10933, 'precneqq'],
679
+ [10934, 'scnE'],
680
+ [10934, 'succneqq'],
681
+ [10935, 'prap'],
682
+ [10935, 'precapprox'],
683
+ [10936, 'scap'],
684
+ [10936, 'succapprox'],
685
+ [10937, 'prnap'],
686
+ [10937, 'precnapprox'],
687
+ [10938, 'scnap'],
688
+ [10938, 'succnapprox'],
689
+ [10939, 'Pr'],
690
+ [10940, 'Sc'],
691
+ [10941, 'subdot'],
692
+ [10942, 'supdot'],
693
+ [10943, 'subplus'],
694
+ [10944, 'supplus'],
695
+ [10945, 'submult'],
696
+ [10946, 'supmult'],
697
+ [10947, 'subedot'],
698
+ [10948, 'supedot'],
699
+ [10949, 'subE'],
700
+ [10949, 'subseteqq'],
701
+ [10950, 'supE'],
702
+ [10950, 'supseteqq'],
703
+ [10951, 'subsim'],
704
+ [10952, 'supsim'],
705
+ [10955, 'subnE'],
706
+ [10955, 'subsetneqq'],
707
+ [10956, 'supnE'],
708
+ [10956, 'supsetneqq'],
709
+ [10959, 'csub'],
710
+ [10960, 'csup'],
711
+ [10961, 'csube'],
712
+ [10962, 'csupe'],
713
+ [10963, 'subsup'],
714
+ [10964, 'supsub'],
715
+ [10965, 'subsub'],
716
+ [10966, 'supsup'],
717
+ [10967, 'suphsub'],
718
+ [10968, 'supdsub'],
719
+ [10969, 'forkv'],
720
+ [10970, 'topfork'],
721
+ [10971, 'mlcp'],
722
+ [10980, 'Dashv'],
723
+ [10980, 'DoubleLeftTee'],
724
+ [10982, 'Vdashl'],
725
+ [10983, 'Barv'],
726
+ [10984, 'vBar'],
727
+ [10985, 'vBarv'],
728
+ [10987, 'Vbar'],
729
+ [10988, 'Not'],
730
+ [10989, 'bNot'],
731
+ [10990, 'rnmid'],
732
+ [10991, 'cirmid'],
733
+ [10992, 'midcir'],
734
+ [10993, 'topcir'],
735
+ [10994, 'nhpar'],
736
+ [10995, 'parsim'],
737
+ [11005, 'parsl'],
738
+ [64256, 'fflig'],
739
+ [64257, 'filig'],
740
+ [64258, 'fllig'],
741
+ [64259, 'ffilig'],
742
+ [64260, 'ffllig'],
743
+ [119964, 'Ascr'],
744
+ [119966, 'Cscr'],
745
+ [119967, 'Dscr'],
746
+ [119970, 'Gscr'],
747
+ [119973, 'Jscr'],
748
+ [119974, 'Kscr'],
749
+ [119977, 'Nscr'],
750
+ [119978, 'Oscr'],
751
+ [119979, 'Pscr'],
752
+ [119980, 'Qscr'],
753
+ [119982, 'Sscr'],
754
+ [119983, 'Tscr'],
755
+ [119984, 'Uscr'],
756
+ [119985, 'Vscr'],
757
+ [119986, 'Wscr'],
758
+ [119987, 'Xscr'],
759
+ [119988, 'Yscr'],
760
+ [119989, 'Zscr'],
761
+ [119990, 'ascr'],
762
+ [119991, 'bscr'],
763
+ [119992, 'cscr'],
764
+ [119993, 'dscr'],
765
+ [119995, 'fscr'],
766
+ [119997, 'hscr'],
767
+ [119998, 'iscr'],
768
+ [119999, 'jscr'],
769
+ [120000, 'kscr'],
770
+ [120001, 'lscr'],
771
+ [120002, 'mscr'],
772
+ [120003, 'nscr'],
773
+ [120005, 'pscr'],
774
+ [120006, 'qscr'],
775
+ [120007, 'rscr'],
776
+ [120008, 'sscr'],
777
+ [120009, 'tscr'],
778
+ [120010, 'uscr'],
779
+ [120011, 'vscr'],
780
+ [120012, 'wscr'],
781
+ [120013, 'xscr'],
782
+ [120014, 'yscr'],
783
+ [120015, 'zscr'],
784
+ [120068, 'Afr'],
785
+ [120069, 'Bfr'],
786
+ [120071, 'Dfr'],
787
+ [120072, 'Efr'],
788
+ [120073, 'Ffr'],
789
+ [120074, 'Gfr'],
790
+ [120077, 'Jfr'],
791
+ [120078, 'Kfr'],
792
+ [120079, 'Lfr'],
793
+ [120080, 'Mfr'],
794
+ [120081, 'Nfr'],
795
+ [120082, 'Ofr'],
796
+ [120083, 'Pfr'],
797
+ [120084, 'Qfr'],
798
+ [120086, 'Sfr'],
799
+ [120087, 'Tfr'],
800
+ [120088, 'Ufr'],
801
+ [120089, 'Vfr'],
802
+ [120090, 'Wfr'],
803
+ [120091, 'Xfr'],
804
+ [120092, 'Yfr'],
805
+ [120094, 'afr'],
806
+ [120095, 'bfr'],
807
+ [120096, 'cfr'],
808
+ [120097, 'dfr'],
809
+ [120098, 'efr'],
810
+ [120099, 'ffr'],
811
+ [120100, 'gfr'],
812
+ [120101, 'hfr'],
813
+ [120102, 'ifr'],
814
+ [120103, 'jfr'],
815
+ [120104, 'kfr'],
816
+ [120105, 'lfr'],
817
+ [120106, 'mfr'],
818
+ [120107, 'nfr'],
819
+ [120108, 'ofr'],
820
+ [120109, 'pfr'],
821
+ [120110, 'qfr'],
822
+ [120111, 'rfr'],
823
+ [120112, 'sfr'],
824
+ [120113, 'tfr'],
825
+ [120114, 'ufr'],
826
+ [120115, 'vfr'],
827
+ [120116, 'wfr'],
828
+ [120117, 'xfr'],
829
+ [120118, 'yfr'],
830
+ [120119, 'zfr'],
831
+ [120120, 'Aopf'],
832
+ [120121, 'Bopf'],
833
+ [120123, 'Dopf'],
834
+ [120124, 'Eopf'],
835
+ [120125, 'Fopf'],
836
+ [120126, 'Gopf'],
837
+ [120128, 'Iopf'],
838
+ [120129, 'Jopf'],
839
+ [120130, 'Kopf'],
840
+ [120131, 'Lopf'],
841
+ [120132, 'Mopf'],
842
+ [120134, 'Oopf'],
843
+ [120138, 'Sopf'],
844
+ [120139, 'Topf'],
845
+ [120140, 'Uopf'],
846
+ [120141, 'Vopf'],
847
+ [120142, 'Wopf'],
848
+ [120143, 'Xopf'],
849
+ [120144, 'Yopf'],
850
+ [120146, 'aopf'],
851
+ [120147, 'bopf'],
852
+ [120148, 'copf'],
853
+ [120149, 'dopf'],
854
+ [120150, 'eopf'],
855
+ [120151, 'fopf'],
856
+ [120152, 'gopf'],
857
+ [120153, 'hopf'],
858
+ [120154, 'iopf'],
859
+ [120155, 'jopf'],
860
+ [120156, 'kopf'],
861
+ [120157, 'lopf'],
862
+ [120158, 'mopf'],
863
+ [120159, 'nopf'],
864
+ [120160, 'oopf'],
865
+ [120161, 'popf'],
866
+ [120162, 'qopf'],
867
+ [120163, 'ropf'],
868
+ [120164, 'sopf'],
869
+ [120165, 'topf'],
870
+ [120166, 'uopf'],
871
+ [120167, 'vopf'],
872
+ [120168, 'wopf'],
873
+ [120169, 'xopf'],
874
+ [120170, 'yopf'],
875
+ [120171, 'zopf'],
876
+ [60, 'nvlt'],
877
+ [61, 'bne'],
878
+ [62, 'nvgt'],
879
+ [102, 'fjlig'],
880
+ [8287, 'ThickSpace'],
881
+ [8605, 'nrarrw'],
882
+ [8706, 'npart'],
883
+ [8736, 'nang'],
884
+ [8745, 'caps'],
885
+ [8746, 'cups'],
886
+ [8764, 'nvsim'],
887
+ [8765, 'race'],
888
+ [8766, 'acE'],
889
+ [8770, 'nesim'],
890
+ [8770, 'NotEqualTilde'],
891
+ [8779, 'napid'],
892
+ [8781, 'nvap'],
893
+ [8782, 'nbump'],
894
+ [8782, 'NotHumpDownHump'],
895
+ [8783, 'nbumpe'],
896
+ [8783, 'NotHumpEqual'],
897
+ [8784, 'nedot'],
898
+ [8801, 'bnequiv'],
899
+ [8804, 'nvle'],
900
+ [8805, 'nvge'],
901
+ [8806, 'nlE'],
902
+ [8806, 'nleqq'],
903
+ [8807, 'ngE'],
904
+ [8807, 'ngeqq'],
905
+ [8807, 'NotGreaterFullEqual'],
906
+ [8808, 'lvertneqq'],
907
+ [8808, 'lvnE'],
908
+ [8809, 'gvertneqq'],
909
+ [8809, 'gvnE'],
910
+ [8810, 'nLtv'],
911
+ [8810, 'NotLessLess'],
912
+ [8810, 'nLt'],
913
+ [8811, 'nGtv'],
914
+ [8811, 'NotGreaterGreater'],
915
+ [8811, 'nGt'],
916
+ [8831, 'NotSucceedsTilde'],
917
+ [8834, 'NotSubset'],
918
+ [8834, 'nsubset'],
919
+ [8834, 'vnsub'],
920
+ [8835, 'NotSuperset'],
921
+ [8835, 'nsupset'],
922
+ [8835, 'vnsup'],
923
+ [8842, 'varsubsetneq'],
924
+ [8842, 'vsubne'],
925
+ [8843, 'varsupsetneq'],
926
+ [8843, 'vsupne'],
927
+ [8847, 'NotSquareSubset'],
928
+ [8848, 'NotSquareSuperset'],
929
+ [8851, 'sqcaps'],
930
+ [8852, 'sqcups'],
931
+ [8884, 'nvltrie'],
932
+ [8885, 'nvrtrie'],
933
+ [8920, 'nLl'],
934
+ [8921, 'nGg'],
935
+ [8922, 'lesg'],
936
+ [8923, 'gesl'],
937
+ [8949, 'notindot'],
938
+ [8953, 'notinE'],
939
+ [10547, 'nrarrc'],
940
+ [10703, 'NotLeftTriangleBar'],
941
+ [10704, 'NotRightTriangleBar'],
942
+ [10861, 'ncongdot'],
943
+ [10864, 'napE'],
944
+ [10877, 'nleqslant'],
945
+ [10877, 'nles'],
946
+ [10877, 'NotLessSlantEqual'],
947
+ [10878, 'ngeqslant'],
948
+ [10878, 'nges'],
949
+ [10878, 'NotGreaterSlantEqual'],
950
+ [10913, 'NotNestedLessLess'],
951
+ [10914, 'NotNestedGreaterGreater'],
952
+ [10924, 'smtes'],
953
+ [10925, 'lates'],
954
+ [10927, 'NotPrecedesEqual'],
955
+ [10927, 'npre'],
956
+ [10927, 'npreceq'],
957
+ [10928, 'NotSucceedsEqual'],
958
+ [10928, 'nsce'],
959
+ [10928, 'nsucceq'],
960
+ [10949, 'nsubE'],
961
+ [10949, 'nsubseteqq'],
962
+ [10950, 'nsupE'],
963
+ [10950, 'nsupseteqq'],
964
+ [10955, 'varsubsetneqq'],
965
+ [10955, 'vsubnE'],
966
+ [10956, 'varsupsetneqq'],
967
+ [10956, 'vsupnE'],
968
+ [11005, 'nparsl'],
969
+
314
970
  ]
315
971
 
316
972
  # Contains the mapping of code point (or name) to the actual Entity object.
@@ -323,11 +979,11 @@ module Kramdown
323
979
  end
324
980
 
325
981
  ENTITY_TABLE.each do |code_point, data|
326
- if data.kind_of?(String)
327
- ENTITY_MAP[code_point] = ENTITY_MAP[data] = Entity.new(code_point, data)
328
- else
329
- ENTITY_MAP[code_point] = ENTITY_MAP[data]
330
- end
982
+ ENTITY_MAP[code_point] = if data.kind_of?(String)
983
+ ENTITY_MAP[data] = Entity.new(code_point, data)
984
+ else
985
+ ENTITY_MAP[data]
986
+ end
331
987
  end
332
988
 
333
989
  # Return the entity for the given code point or name +point_or_name+.
@@ -46,7 +46,7 @@ module Kramdown
46
46
 
47
47
  attr.map do |k, v|
48
48
  v.nil? || (k == 'id' && v.strip.empty?) ? '' : " #{k}=\"#{escape_html(v.to_s, :attribute)}\""
49
- end.join('')
49
+ end.join
50
50
  end
51
51
 
52
52
  # :stopdoc: