Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: blocks.js
'saxophone':'\ud83c\udfb7',
[2500] Fix | Delete
'school':'\ud83c\udfeb',
[2501] Fix | Delete
'school_satchel':'\ud83c\udf92',
[2502] Fix | Delete
'scissors':'\u2702\ufe0f',
[2503] Fix | Delete
'scorpion':'\ud83e\udd82',
[2504] Fix | Delete
'scorpius':'\u264f\ufe0f',
[2505] Fix | Delete
'scream':'\ud83d\ude31',
[2506] Fix | Delete
'scream_cat':'\ud83d\ude40',
[2507] Fix | Delete
'scroll':'\ud83d\udcdc',
[2508] Fix | Delete
'seat':'\ud83d\udcba',
[2509] Fix | Delete
'secret':'\u3299\ufe0f',
[2510] Fix | Delete
'see_no_evil':'\ud83d\ude48',
[2511] Fix | Delete
'seedling':'\ud83c\udf31',
[2512] Fix | Delete
'selfie':'\ud83e\udd33',
[2513] Fix | Delete
'shallow_pan_of_food':'\ud83e\udd58',
[2514] Fix | Delete
'shamrock':'\u2618\ufe0f',
[2515] Fix | Delete
'shark':'\ud83e\udd88',
[2516] Fix | Delete
'shaved_ice':'\ud83c\udf67',
[2517] Fix | Delete
'sheep':'\ud83d\udc11',
[2518] Fix | Delete
'shell':'\ud83d\udc1a',
[2519] Fix | Delete
'shield':'\ud83d\udee1',
[2520] Fix | Delete
'shinto_shrine':'\u26e9',
[2521] Fix | Delete
'ship':'\ud83d\udea2',
[2522] Fix | Delete
'shirt':'\ud83d\udc55',
[2523] Fix | Delete
'shopping':'\ud83d\udecd',
[2524] Fix | Delete
'shopping_cart':'\ud83d\uded2',
[2525] Fix | Delete
'shower':'\ud83d\udebf',
[2526] Fix | Delete
'shrimp':'\ud83e\udd90',
[2527] Fix | Delete
'signal_strength':'\ud83d\udcf6',
[2528] Fix | Delete
'six_pointed_star':'\ud83d\udd2f',
[2529] Fix | Delete
'ski':'\ud83c\udfbf',
[2530] Fix | Delete
'skier':'\u26f7',
[2531] Fix | Delete
'skull':'\ud83d\udc80',
[2532] Fix | Delete
'skull_and_crossbones':'\u2620\ufe0f',
[2533] Fix | Delete
'sleeping':'\ud83d\ude34',
[2534] Fix | Delete
'sleeping_bed':'\ud83d\udecc',
[2535] Fix | Delete
'sleepy':'\ud83d\ude2a',
[2536] Fix | Delete
'slightly_frowning_face':'\ud83d\ude41',
[2537] Fix | Delete
'slightly_smiling_face':'\ud83d\ude42',
[2538] Fix | Delete
'slot_machine':'\ud83c\udfb0',
[2539] Fix | Delete
'small_airplane':'\ud83d\udee9',
[2540] Fix | Delete
'small_blue_diamond':'\ud83d\udd39',
[2541] Fix | Delete
'small_orange_diamond':'\ud83d\udd38',
[2542] Fix | Delete
'small_red_triangle':'\ud83d\udd3a',
[2543] Fix | Delete
'small_red_triangle_down':'\ud83d\udd3b',
[2544] Fix | Delete
'smile':'\ud83d\ude04',
[2545] Fix | Delete
'smile_cat':'\ud83d\ude38',
[2546] Fix | Delete
'smiley':'\ud83d\ude03',
[2547] Fix | Delete
'smiley_cat':'\ud83d\ude3a',
[2548] Fix | Delete
'smiling_imp':'\ud83d\ude08',
[2549] Fix | Delete
'smirk':'\ud83d\ude0f',
[2550] Fix | Delete
'smirk_cat':'\ud83d\ude3c',
[2551] Fix | Delete
'smoking':'\ud83d\udeac',
[2552] Fix | Delete
'snail':'\ud83d\udc0c',
[2553] Fix | Delete
'snake':'\ud83d\udc0d',
[2554] Fix | Delete
'sneezing_face':'\ud83e\udd27',
[2555] Fix | Delete
'snowboarder':'\ud83c\udfc2',
[2556] Fix | Delete
'snowflake':'\u2744\ufe0f',
[2557] Fix | Delete
'snowman':'\u26c4\ufe0f',
[2558] Fix | Delete
'snowman_with_snow':'\u2603\ufe0f',
[2559] Fix | Delete
'sob':'\ud83d\ude2d',
[2560] Fix | Delete
'soccer':'\u26bd\ufe0f',
[2561] Fix | Delete
'soon':'\ud83d\udd1c',
[2562] Fix | Delete
'sos':'\ud83c\udd98',
[2563] Fix | Delete
'sound':'\ud83d\udd09',
[2564] Fix | Delete
'space_invader':'\ud83d\udc7e',
[2565] Fix | Delete
'spades':'\u2660\ufe0f',
[2566] Fix | Delete
'spaghetti':'\ud83c\udf5d',
[2567] Fix | Delete
'sparkle':'\u2747\ufe0f',
[2568] Fix | Delete
'sparkler':'\ud83c\udf87',
[2569] Fix | Delete
'sparkles':'\u2728',
[2570] Fix | Delete
'sparkling_heart':'\ud83d\udc96',
[2571] Fix | Delete
'speak_no_evil':'\ud83d\ude4a',
[2572] Fix | Delete
'speaker':'\ud83d\udd08',
[2573] Fix | Delete
'speaking_head':'\ud83d\udde3',
[2574] Fix | Delete
'speech_balloon':'\ud83d\udcac',
[2575] Fix | Delete
'speedboat':'\ud83d\udea4',
[2576] Fix | Delete
'spider':'\ud83d\udd77',
[2577] Fix | Delete
'spider_web':'\ud83d\udd78',
[2578] Fix | Delete
'spiral_calendar':'\ud83d\uddd3',
[2579] Fix | Delete
'spiral_notepad':'\ud83d\uddd2',
[2580] Fix | Delete
'spoon':'\ud83e\udd44',
[2581] Fix | Delete
'squid':'\ud83e\udd91',
[2582] Fix | Delete
'stadium':'\ud83c\udfdf',
[2583] Fix | Delete
'star':'\u2b50\ufe0f',
[2584] Fix | Delete
'star2':'\ud83c\udf1f',
[2585] Fix | Delete
'star_and_crescent':'\u262a\ufe0f',
[2586] Fix | Delete
'star_of_david':'\u2721\ufe0f',
[2587] Fix | Delete
'stars':'\ud83c\udf20',
[2588] Fix | Delete
'station':'\ud83d\ude89',
[2589] Fix | Delete
'statue_of_liberty':'\ud83d\uddfd',
[2590] Fix | Delete
'steam_locomotive':'\ud83d\ude82',
[2591] Fix | Delete
'stew':'\ud83c\udf72',
[2592] Fix | Delete
'stop_button':'\u23f9',
[2593] Fix | Delete
'stop_sign':'\ud83d\uded1',
[2594] Fix | Delete
'stopwatch':'\u23f1',
[2595] Fix | Delete
'straight_ruler':'\ud83d\udccf',
[2596] Fix | Delete
'strawberry':'\ud83c\udf53',
[2597] Fix | Delete
'stuck_out_tongue':'\ud83d\ude1b',
[2598] Fix | Delete
'stuck_out_tongue_closed_eyes':'\ud83d\ude1d',
[2599] Fix | Delete
'stuck_out_tongue_winking_eye':'\ud83d\ude1c',
[2600] Fix | Delete
'studio_microphone':'\ud83c\udf99',
[2601] Fix | Delete
'stuffed_flatbread':'\ud83e\udd59',
[2602] Fix | Delete
'sun_behind_large_cloud':'\ud83c\udf25',
[2603] Fix | Delete
'sun_behind_rain_cloud':'\ud83c\udf26',
[2604] Fix | Delete
'sun_behind_small_cloud':'\ud83c\udf24',
[2605] Fix | Delete
'sun_with_face':'\ud83c\udf1e',
[2606] Fix | Delete
'sunflower':'\ud83c\udf3b',
[2607] Fix | Delete
'sunglasses':'\ud83d\ude0e',
[2608] Fix | Delete
'sunny':'\u2600\ufe0f',
[2609] Fix | Delete
'sunrise':'\ud83c\udf05',
[2610] Fix | Delete
'sunrise_over_mountains':'\ud83c\udf04',
[2611] Fix | Delete
'surfing_man':'\ud83c\udfc4',
[2612] Fix | Delete
'surfing_woman':'\ud83c\udfc4‍\u2640\ufe0f',
[2613] Fix | Delete
'sushi':'\ud83c\udf63',
[2614] Fix | Delete
'suspension_railway':'\ud83d\ude9f',
[2615] Fix | Delete
'sweat':'\ud83d\ude13',
[2616] Fix | Delete
'sweat_drops':'\ud83d\udca6',
[2617] Fix | Delete
'sweat_smile':'\ud83d\ude05',
[2618] Fix | Delete
'sweet_potato':'\ud83c\udf60',
[2619] Fix | Delete
'swimming_man':'\ud83c\udfca',
[2620] Fix | Delete
'swimming_woman':'\ud83c\udfca‍\u2640\ufe0f',
[2621] Fix | Delete
'symbols':'\ud83d\udd23',
[2622] Fix | Delete
'synagogue':'\ud83d\udd4d',
[2623] Fix | Delete
'syringe':'\ud83d\udc89',
[2624] Fix | Delete
'taco':'\ud83c\udf2e',
[2625] Fix | Delete
'tada':'\ud83c\udf89',
[2626] Fix | Delete
'tanabata_tree':'\ud83c\udf8b',
[2627] Fix | Delete
'taurus':'\u2649\ufe0f',
[2628] Fix | Delete
'taxi':'\ud83d\ude95',
[2629] Fix | Delete
'tea':'\ud83c\udf75',
[2630] Fix | Delete
'telephone_receiver':'\ud83d\udcde',
[2631] Fix | Delete
'telescope':'\ud83d\udd2d',
[2632] Fix | Delete
'tennis':'\ud83c\udfbe',
[2633] Fix | Delete
'tent':'\u26fa\ufe0f',
[2634] Fix | Delete
'thermometer':'\ud83c\udf21',
[2635] Fix | Delete
'thinking':'\ud83e\udd14',
[2636] Fix | Delete
'thought_balloon':'\ud83d\udcad',
[2637] Fix | Delete
'ticket':'\ud83c\udfab',
[2638] Fix | Delete
'tickets':'\ud83c\udf9f',
[2639] Fix | Delete
'tiger':'\ud83d\udc2f',
[2640] Fix | Delete
'tiger2':'\ud83d\udc05',
[2641] Fix | Delete
'timer_clock':'\u23f2',
[2642] Fix | Delete
'tipping_hand_man':'\ud83d\udc81‍\u2642\ufe0f',
[2643] Fix | Delete
'tired_face':'\ud83d\ude2b',
[2644] Fix | Delete
'tm':'\u2122\ufe0f',
[2645] Fix | Delete
'toilet':'\ud83d\udebd',
[2646] Fix | Delete
'tokyo_tower':'\ud83d\uddfc',
[2647] Fix | Delete
'tomato':'\ud83c\udf45',
[2648] Fix | Delete
'tongue':'\ud83d\udc45',
[2649] Fix | Delete
'top':'\ud83d\udd1d',
[2650] Fix | Delete
'tophat':'\ud83c\udfa9',
[2651] Fix | Delete
'tornado':'\ud83c\udf2a',
[2652] Fix | Delete
'trackball':'\ud83d\uddb2',
[2653] Fix | Delete
'tractor':'\ud83d\ude9c',
[2654] Fix | Delete
'traffic_light':'\ud83d\udea5',
[2655] Fix | Delete
'train':'\ud83d\ude8b',
[2656] Fix | Delete
'train2':'\ud83d\ude86',
[2657] Fix | Delete
'tram':'\ud83d\ude8a',
[2658] Fix | Delete
'triangular_flag_on_post':'\ud83d\udea9',
[2659] Fix | Delete
'triangular_ruler':'\ud83d\udcd0',
[2660] Fix | Delete
'trident':'\ud83d\udd31',
[2661] Fix | Delete
'triumph':'\ud83d\ude24',
[2662] Fix | Delete
'trolleybus':'\ud83d\ude8e',
[2663] Fix | Delete
'trophy':'\ud83c\udfc6',
[2664] Fix | Delete
'tropical_drink':'\ud83c\udf79',
[2665] Fix | Delete
'tropical_fish':'\ud83d\udc20',
[2666] Fix | Delete
'truck':'\ud83d\ude9a',
[2667] Fix | Delete
'trumpet':'\ud83c\udfba',
[2668] Fix | Delete
'tulip':'\ud83c\udf37',
[2669] Fix | Delete
'tumbler_glass':'\ud83e\udd43',
[2670] Fix | Delete
'turkey':'\ud83e\udd83',
[2671] Fix | Delete
'turtle':'\ud83d\udc22',
[2672] Fix | Delete
'tv':'\ud83d\udcfa',
[2673] Fix | Delete
'twisted_rightwards_arrows':'\ud83d\udd00',
[2674] Fix | Delete
'two_hearts':'\ud83d\udc95',
[2675] Fix | Delete
'two_men_holding_hands':'\ud83d\udc6c',
[2676] Fix | Delete
'two_women_holding_hands':'\ud83d\udc6d',
[2677] Fix | Delete
'u5272':'\ud83c\ude39',
[2678] Fix | Delete
'u5408':'\ud83c\ude34',
[2679] Fix | Delete
'u55b6':'\ud83c\ude3a',
[2680] Fix | Delete
'u6307':'\ud83c\ude2f\ufe0f',
[2681] Fix | Delete
'u6708':'\ud83c\ude37\ufe0f',
[2682] Fix | Delete
'u6709':'\ud83c\ude36',
[2683] Fix | Delete
'u6e80':'\ud83c\ude35',
[2684] Fix | Delete
'u7121':'\ud83c\ude1a\ufe0f',
[2685] Fix | Delete
'u7533':'\ud83c\ude38',
[2686] Fix | Delete
'u7981':'\ud83c\ude32',
[2687] Fix | Delete
'u7a7a':'\ud83c\ude33',
[2688] Fix | Delete
'umbrella':'\u2614\ufe0f',
[2689] Fix | Delete
'unamused':'\ud83d\ude12',
[2690] Fix | Delete
'underage':'\ud83d\udd1e',
[2691] Fix | Delete
'unicorn':'\ud83e\udd84',
[2692] Fix | Delete
'unlock':'\ud83d\udd13',
[2693] Fix | Delete
'up':'\ud83c\udd99',
[2694] Fix | Delete
'upside_down_face':'\ud83d\ude43',
[2695] Fix | Delete
'v':'\u270c\ufe0f',
[2696] Fix | Delete
'vertical_traffic_light':'\ud83d\udea6',
[2697] Fix | Delete
'vhs':'\ud83d\udcfc',
[2698] Fix | Delete
'vibration_mode':'\ud83d\udcf3',
[2699] Fix | Delete
'video_camera':'\ud83d\udcf9',
[2700] Fix | Delete
'video_game':'\ud83c\udfae',
[2701] Fix | Delete
'violin':'\ud83c\udfbb',
[2702] Fix | Delete
'virgo':'\u264d\ufe0f',
[2703] Fix | Delete
'volcano':'\ud83c\udf0b',
[2704] Fix | Delete
'volleyball':'\ud83c\udfd0',
[2705] Fix | Delete
'vs':'\ud83c\udd9a',
[2706] Fix | Delete
'vulcan_salute':'\ud83d\udd96',
[2707] Fix | Delete
'walking_man':'\ud83d\udeb6',
[2708] Fix | Delete
'walking_woman':'\ud83d\udeb6‍\u2640\ufe0f',
[2709] Fix | Delete
'waning_crescent_moon':'\ud83c\udf18',
[2710] Fix | Delete
'waning_gibbous_moon':'\ud83c\udf16',
[2711] Fix | Delete
'warning':'\u26a0\ufe0f',
[2712] Fix | Delete
'wastebasket':'\ud83d\uddd1',
[2713] Fix | Delete
'watch':'\u231a\ufe0f',
[2714] Fix | Delete
'water_buffalo':'\ud83d\udc03',
[2715] Fix | Delete
'watermelon':'\ud83c\udf49',
[2716] Fix | Delete
'wave':'\ud83d\udc4b',
[2717] Fix | Delete
'wavy_dash':'\u3030\ufe0f',
[2718] Fix | Delete
'waxing_crescent_moon':'\ud83c\udf12',
[2719] Fix | Delete
'wc':'\ud83d\udebe',
[2720] Fix | Delete
'weary':'\ud83d\ude29',
[2721] Fix | Delete
'wedding':'\ud83d\udc92',
[2722] Fix | Delete
'weight_lifting_man':'\ud83c\udfcb\ufe0f',
[2723] Fix | Delete
'weight_lifting_woman':'\ud83c\udfcb\ufe0f‍\u2640\ufe0f',
[2724] Fix | Delete
'whale':'\ud83d\udc33',
[2725] Fix | Delete
'whale2':'\ud83d\udc0b',
[2726] Fix | Delete
'wheel_of_dharma':'\u2638\ufe0f',
[2727] Fix | Delete
'wheelchair':'\u267f\ufe0f',
[2728] Fix | Delete
'white_check_mark':'\u2705',
[2729] Fix | Delete
'white_circle':'\u26aa\ufe0f',
[2730] Fix | Delete
'white_flag':'\ud83c\udff3\ufe0f',
[2731] Fix | Delete
'white_flower':'\ud83d\udcae',
[2732] Fix | Delete
'white_large_square':'\u2b1c\ufe0f',
[2733] Fix | Delete
'white_medium_small_square':'\u25fd\ufe0f',
[2734] Fix | Delete
'white_medium_square':'\u25fb\ufe0f',
[2735] Fix | Delete
'white_small_square':'\u25ab\ufe0f',
[2736] Fix | Delete
'white_square_button':'\ud83d\udd33',
[2737] Fix | Delete
'wilted_flower':'\ud83e\udd40',
[2738] Fix | Delete
'wind_chime':'\ud83c\udf90',
[2739] Fix | Delete
'wind_face':'\ud83c\udf2c',
[2740] Fix | Delete
'wine_glass':'\ud83c\udf77',
[2741] Fix | Delete
'wink':'\ud83d\ude09',
[2742] Fix | Delete
'wolf':'\ud83d\udc3a',
[2743] Fix | Delete
'woman':'\ud83d\udc69',
[2744] Fix | Delete
'woman_artist':'\ud83d\udc69‍\ud83c\udfa8',
[2745] Fix | Delete
'woman_astronaut':'\ud83d\udc69‍\ud83d\ude80',
[2746] Fix | Delete
'woman_cartwheeling':'\ud83e\udd38‍\u2640\ufe0f',
[2747] Fix | Delete
'woman_cook':'\ud83d\udc69‍\ud83c\udf73',
[2748] Fix | Delete
'woman_facepalming':'\ud83e\udd26‍\u2640\ufe0f',
[2749] Fix | Delete
'woman_factory_worker':'\ud83d\udc69‍\ud83c\udfed',
[2750] Fix | Delete
'woman_farmer':'\ud83d\udc69‍\ud83c\udf3e',
[2751] Fix | Delete
'woman_firefighter':'\ud83d\udc69‍\ud83d\ude92',
[2752] Fix | Delete
'woman_health_worker':'\ud83d\udc69‍\u2695\ufe0f',
[2753] Fix | Delete
'woman_judge':'\ud83d\udc69‍\u2696\ufe0f',
[2754] Fix | Delete
'woman_juggling':'\ud83e\udd39‍\u2640\ufe0f',
[2755] Fix | Delete
'woman_mechanic':'\ud83d\udc69‍\ud83d\udd27',
[2756] Fix | Delete
'woman_office_worker':'\ud83d\udc69‍\ud83d\udcbc',
[2757] Fix | Delete
'woman_pilot':'\ud83d\udc69‍\u2708\ufe0f',
[2758] Fix | Delete
'woman_playing_handball':'\ud83e\udd3e‍\u2640\ufe0f',
[2759] Fix | Delete
'woman_playing_water_polo':'\ud83e\udd3d‍\u2640\ufe0f',
[2760] Fix | Delete
'woman_scientist':'\ud83d\udc69‍\ud83d\udd2c',
[2761] Fix | Delete
'woman_shrugging':'\ud83e\udd37‍\u2640\ufe0f',
[2762] Fix | Delete
'woman_singer':'\ud83d\udc69‍\ud83c\udfa4',
[2763] Fix | Delete
'woman_student':'\ud83d\udc69‍\ud83c\udf93',
[2764] Fix | Delete
'woman_teacher':'\ud83d\udc69‍\ud83c\udfeb',
[2765] Fix | Delete
'woman_technologist':'\ud83d\udc69‍\ud83d\udcbb',
[2766] Fix | Delete
'woman_with_turban':'\ud83d\udc73‍\u2640\ufe0f',
[2767] Fix | Delete
'womans_clothes':'\ud83d\udc5a',
[2768] Fix | Delete
'womans_hat':'\ud83d\udc52',
[2769] Fix | Delete
'women_wrestling':'\ud83e\udd3c‍\u2640\ufe0f',
[2770] Fix | Delete
'womens':'\ud83d\udeba',
[2771] Fix | Delete
'world_map':'\ud83d\uddfa',
[2772] Fix | Delete
'worried':'\ud83d\ude1f',
[2773] Fix | Delete
'wrench':'\ud83d\udd27',
[2774] Fix | Delete
'writing_hand':'\u270d\ufe0f',
[2775] Fix | Delete
'x':'\u274c',
[2776] Fix | Delete
'yellow_heart':'\ud83d\udc9b',
[2777] Fix | Delete
'yen':'\ud83d\udcb4',
[2778] Fix | Delete
'yin_yang':'\u262f\ufe0f',
[2779] Fix | Delete
'yum':'\ud83d\ude0b',
[2780] Fix | Delete
'zap':'\u26a1\ufe0f',
[2781] Fix | Delete
'zipper_mouth_face':'\ud83e\udd10',
[2782] Fix | Delete
'zzz':'\ud83d\udca4',
[2783] Fix | Delete
[2784] Fix | Delete
/* special emojis :P */
[2785] Fix | Delete
'octocat': '<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',
[2786] Fix | Delete
'showdown': '<span style="font-family: \'Anonymous Pro\', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;">S</span>'
[2787] Fix | Delete
};
[2788] Fix | Delete
[2789] Fix | Delete
/**
[2790] Fix | Delete
* Created by Estevao on 31-05-2015.
[2791] Fix | Delete
*/
[2792] Fix | Delete
[2793] Fix | Delete
/**
[2794] Fix | Delete
* Showdown Converter class
[2795] Fix | Delete
* @class
[2796] Fix | Delete
* @param {object} [converterOptions]
[2797] Fix | Delete
* @returns {Converter}
[2798] Fix | Delete
*/
[2799] Fix | Delete
showdown.Converter = function (converterOptions) {
[2800] Fix | Delete
'use strict';
[2801] Fix | Delete
[2802] Fix | Delete
var
[2803] Fix | Delete
/**
[2804] Fix | Delete
* Options used by this converter
[2805] Fix | Delete
* @private
[2806] Fix | Delete
* @type {{}}
[2807] Fix | Delete
*/
[2808] Fix | Delete
options = {},
[2809] Fix | Delete
[2810] Fix | Delete
/**
[2811] Fix | Delete
* Language extensions used by this converter
[2812] Fix | Delete
* @private
[2813] Fix | Delete
* @type {Array}
[2814] Fix | Delete
*/
[2815] Fix | Delete
langExtensions = [],
[2816] Fix | Delete
[2817] Fix | Delete
/**
[2818] Fix | Delete
* Output modifiers extensions used by this converter
[2819] Fix | Delete
* @private
[2820] Fix | Delete
* @type {Array}
[2821] Fix | Delete
*/
[2822] Fix | Delete
outputModifiers = [],
[2823] Fix | Delete
[2824] Fix | Delete
/**
[2825] Fix | Delete
* Event listeners
[2826] Fix | Delete
* @private
[2827] Fix | Delete
* @type {{}}
[2828] Fix | Delete
*/
[2829] Fix | Delete
listeners = {},
[2830] Fix | Delete
[2831] Fix | Delete
/**
[2832] Fix | Delete
* The flavor set in this converter
[2833] Fix | Delete
*/
[2834] Fix | Delete
setConvFlavor = setFlavor,
[2835] Fix | Delete
[2836] Fix | Delete
/**
[2837] Fix | Delete
* Metadata of the document
[2838] Fix | Delete
* @type {{parsed: {}, raw: string, format: string}}
[2839] Fix | Delete
*/
[2840] Fix | Delete
metadata = {
[2841] Fix | Delete
parsed: {},
[2842] Fix | Delete
raw: '',
[2843] Fix | Delete
format: ''
[2844] Fix | Delete
};
[2845] Fix | Delete
[2846] Fix | Delete
_constructor();
[2847] Fix | Delete
[2848] Fix | Delete
/**
[2849] Fix | Delete
* Converter constructor
[2850] Fix | Delete
* @private
[2851] Fix | Delete
*/
[2852] Fix | Delete
function _constructor () {
[2853] Fix | Delete
converterOptions = converterOptions || {};
[2854] Fix | Delete
[2855] Fix | Delete
for (var gOpt in globalOptions) {
[2856] Fix | Delete
if (globalOptions.hasOwnProperty(gOpt)) {
[2857] Fix | Delete
options[gOpt] = globalOptions[gOpt];
[2858] Fix | Delete
}
[2859] Fix | Delete
}
[2860] Fix | Delete
[2861] Fix | Delete
// Merge options
[2862] Fix | Delete
if (typeof converterOptions === 'object') {
[2863] Fix | Delete
for (var opt in converterOptions) {
[2864] Fix | Delete
if (converterOptions.hasOwnProperty(opt)) {
[2865] Fix | Delete
options[opt] = converterOptions[opt];
[2866] Fix | Delete
}
[2867] Fix | Delete
}
[2868] Fix | Delete
} else {
[2869] Fix | Delete
throw Error('Converter expects the passed parameter to be an object, but ' + typeof converterOptions +
[2870] Fix | Delete
' was passed instead.');
[2871] Fix | Delete
}
[2872] Fix | Delete
[2873] Fix | Delete
if (options.extensions) {
[2874] Fix | Delete
showdown.helper.forEach(options.extensions, _parseExtension);
[2875] Fix | Delete
}
[2876] Fix | Delete
}
[2877] Fix | Delete
[2878] Fix | Delete
/**
[2879] Fix | Delete
* Parse extension
[2880] Fix | Delete
* @param {*} ext
[2881] Fix | Delete
* @param {string} [name='']
[2882] Fix | Delete
* @private
[2883] Fix | Delete
*/
[2884] Fix | Delete
function _parseExtension (ext, name) {
[2885] Fix | Delete
[2886] Fix | Delete
name = name || null;
[2887] Fix | Delete
// If it's a string, the extension was previously loaded
[2888] Fix | Delete
if (showdown.helper.isString(ext)) {
[2889] Fix | Delete
ext = showdown.helper.stdExtName(ext);
[2890] Fix | Delete
name = ext;
[2891] Fix | Delete
[2892] Fix | Delete
// LEGACY_SUPPORT CODE
[2893] Fix | Delete
if (showdown.extensions[ext]) {
[2894] Fix | Delete
console.warn('DEPRECATION WARNING: ' + ext + ' is an old extension that uses a deprecated loading method.' +
[2895] Fix | Delete
'Please inform the developer that the extension should be updated!');
[2896] Fix | Delete
legacyExtensionLoading(showdown.extensions[ext], ext);
[2897] Fix | Delete
return;
[2898] Fix | Delete
// END LEGACY SUPPORT CODE
[2899] Fix | Delete
[2900] Fix | Delete
} else if (!showdown.helper.isUndefined(extensions[ext])) {
[2901] Fix | Delete
ext = extensions[ext];
[2902] Fix | Delete
[2903] Fix | Delete
} else {
[2904] Fix | Delete
throw Error('Extension "' + ext + '" could not be loaded. It was either not found or is not a valid extension.');
[2905] Fix | Delete
}
[2906] Fix | Delete
}
[2907] Fix | Delete
[2908] Fix | Delete
if (typeof ext === 'function') {
[2909] Fix | Delete
ext = ext();
[2910] Fix | Delete
}
[2911] Fix | Delete
[2912] Fix | Delete
if (!showdown.helper.isArray(ext)) {
[2913] Fix | Delete
ext = [ext];
[2914] Fix | Delete
}
[2915] Fix | Delete
[2916] Fix | Delete
var validExt = validate(ext, name);
[2917] Fix | Delete
if (!validExt.valid) {
[2918] Fix | Delete
throw Error(validExt.error);
[2919] Fix | Delete
}
[2920] Fix | Delete
[2921] Fix | Delete
for (var i = 0; i < ext.length; ++i) {
[2922] Fix | Delete
switch (ext[i].type) {
[2923] Fix | Delete
[2924] Fix | Delete
case 'lang':
[2925] Fix | Delete
langExtensions.push(ext[i]);
[2926] Fix | Delete
break;
[2927] Fix | Delete
[2928] Fix | Delete
case 'output':
[2929] Fix | Delete
outputModifiers.push(ext[i]);
[2930] Fix | Delete
break;
[2931] Fix | Delete
}
[2932] Fix | Delete
if (ext[i].hasOwnProperty('listeners')) {
[2933] Fix | Delete
for (var ln in ext[i].listeners) {
[2934] Fix | Delete
if (ext[i].listeners.hasOwnProperty(ln)) {
[2935] Fix | Delete
listen(ln, ext[i].listeners[ln]);
[2936] Fix | Delete
}
[2937] Fix | Delete
}
[2938] Fix | Delete
}
[2939] Fix | Delete
}
[2940] Fix | Delete
[2941] Fix | Delete
}
[2942] Fix | Delete
[2943] Fix | Delete
/**
[2944] Fix | Delete
* LEGACY_SUPPORT
[2945] Fix | Delete
* @param {*} ext
[2946] Fix | Delete
* @param {string} name
[2947] Fix | Delete
*/
[2948] Fix | Delete
function legacyExtensionLoading (ext, name) {
[2949] Fix | Delete
if (typeof ext === 'function') {
[2950] Fix | Delete
ext = ext(new showdown.Converter());
[2951] Fix | Delete
}
[2952] Fix | Delete
if (!showdown.helper.isArray(ext)) {
[2953] Fix | Delete
ext = [ext];
[2954] Fix | Delete
}
[2955] Fix | Delete
var valid = validate(ext, name);
[2956] Fix | Delete
[2957] Fix | Delete
if (!valid.valid) {
[2958] Fix | Delete
throw Error(valid.error);
[2959] Fix | Delete
}
[2960] Fix | Delete
[2961] Fix | Delete
for (var i = 0; i < ext.length; ++i) {
[2962] Fix | Delete
switch (ext[i].type) {
[2963] Fix | Delete
case 'lang':
[2964] Fix | Delete
langExtensions.push(ext[i]);
[2965] Fix | Delete
break;
[2966] Fix | Delete
case 'output':
[2967] Fix | Delete
outputModifiers.push(ext[i]);
[2968] Fix | Delete
break;
[2969] Fix | Delete
default:// should never reach here
[2970] Fix | Delete
throw Error('Extension loader error: Type unrecognized!!!');
[2971] Fix | Delete
}
[2972] Fix | Delete
}
[2973] Fix | Delete
}
[2974] Fix | Delete
[2975] Fix | Delete
/**
[2976] Fix | Delete
* Listen to an event
[2977] Fix | Delete
* @param {string} name
[2978] Fix | Delete
* @param {function} callback
[2979] Fix | Delete
*/
[2980] Fix | Delete
function listen (name, callback) {
[2981] Fix | Delete
if (!showdown.helper.isString(name)) {
[2982] Fix | Delete
throw Error('Invalid argument in converter.listen() method: name must be a string, but ' + typeof name + ' given');
[2983] Fix | Delete
}
[2984] Fix | Delete
[2985] Fix | Delete
if (typeof callback !== 'function') {
[2986] Fix | Delete
throw Error('Invalid argument in converter.listen() method: callback must be a function, but ' + typeof callback + ' given');
[2987] Fix | Delete
}
[2988] Fix | Delete
[2989] Fix | Delete
if (!listeners.hasOwnProperty(name)) {
[2990] Fix | Delete
listeners[name] = [];
[2991] Fix | Delete
}
[2992] Fix | Delete
listeners[name].push(callback);
[2993] Fix | Delete
}
[2994] Fix | Delete
[2995] Fix | Delete
function rTrimInputText (text) {
[2996] Fix | Delete
var rsp = text.match(/^\s*/)[0].length,
[2997] Fix | Delete
rgx = new RegExp('^\\s{0,' + rsp + '}', 'gm');
[2998] Fix | Delete
return text.replace(rgx, '');
[2999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function