fix a bug in text_spec
diff --git a/R/cell_spec.R b/R/cell_spec.R
index 23e022e..498cae7 100644
--- a/R/cell_spec.R
+++ b/R/cell_spec.R
@@ -192,10 +192,13 @@
color = NULL, background = NULL,
align = NULL, font_size = NULL, angle = NULL,
tooltip = NULL, popover = NULL, link = NULL,
- escape = TRUE, background_as_tile = TRUE,
+ extra_css = NULL,
+ escape = TRUE,
+ background_as_tile = TRUE,
latex_background_in_cell = FALSE) {
cell_spec(x, format, bold, italic, monospace, underline, strikeout,
color, background, align,
- font_size, angle, tooltip, popover, link, escape, background_as_tile,
+ font_size, angle, tooltip, popover, link,
+ extra_css, escape, background_as_tile,
latex_background_in_cell)
}
diff --git a/docs/kableExtra.svg b/docs/kableExtra.svg
index 2c52dc7..547013b 100644
--- a/docs/kableExtra.svg
+++ b/docs/kableExtra.svg
@@ -13,14 +13,6 @@
<use xlink:href="#image-4" transform="scale(0.72,0.72)"></use>
</pattern>
<image id="image-4" width="48" height="48" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAEGWlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1JHQgAAOI2NVV1oHFUUPrtzZyMkzlNsNIV0qD8NJQ2TVjShtLp/3d02bpZJNtoi6GT27s6Yyc44M7v9oU9FUHwx6psUxL+3gCAo9Q/bPrQvlQol2tQgKD60+INQ6Ium65k7M5lpurHeZe58853vnnvuuWfvBei5qliWkRQBFpquLRcy4nOHj4g9K5CEh6AXBqFXUR0rXalMAjZPC3e1W99Dwntf2dXd/p+tt0YdFSBxH2Kz5qgLiI8B8KdVy3YBevqRHz/qWh72Yui3MUDEL3q44WPXw3M+fo1pZuQs4tOIBVVTaoiXEI/MxfhGDPsxsNZfoE1q66ro5aJim3XdoLFw72H+n23BaIXzbcOnz5mfPoTvYVz7KzUl5+FRxEuqkp9G/Ajia219thzg25abkRE/BpDc3pqvphHvRFys2weqvp+krbWKIX7nhDbzLOItiM8358pTwdirqpPFnM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ztePgJGyKs12l76ST4COOC2NjqF5SOwdzr6d1j5mKNAYILAe2JOaDSnyidx0zs6AxAgBwIEERemCJADU/iYHIAAORAgiG0XHti1GWyhsUX6AAAAAElFTkSuQmCC"></image>
- <text id="text-5" font-family="HanziPenSC-W5, HanziPen SC" font-size="55" font-weight="bold" fill="#FFFFFF">
- <tspan x="70.695" y="329">kableExtra</tspan>
- </text>
- <filter x="-2.8%" y="-6.5%" width="105.6%" height="118.2%" filterUnits="objectBoundingBox" id="filter-6">
- <feOffset dx="0" dy="2" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
- <feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
- <feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
- </filter>
</defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="Group" transform="translate(9.000000, 10.000000)">
@@ -29,10 +21,7 @@
<use fill-opacity="0.3" fill="url(#radialGradient-1)" xlink:href="#path-2"></use>
<use stroke="#E2E2E2" stroke-width="17" fill-opacity="0.05" fill="url(#pattern-3)" xlink:href="#path-2"></use>
</g>
- <g id="kableExtra" fill="#FFFFFF" fill-opacity="1">
- <use filter="url(#filter-6)" xlink:href="#text-5"></use>
- <use xlink:href="#text-5"></use>
- </g>
+ <path d="M96.05,305.625 C96.05,307.33 93.905,309.09 89.615,310.96 C86.645,312.28 83.785,313.215 80.925,313.82 C82.63,315.8 86.04,319.21 91.1,324.105 C92.86,325.81 93.74,326.91 93.74,327.46 C93.74,329.055 92.86,329.88 91.21,329.88 C90.605,329.88 89.285,328.89 87.305,326.855 C85.435,325.04 82.52,321.96 78.45,317.615 C78.34,319.705 78.34,321.41 78.34,322.84 C78.34,323.335 78.34,324.05 78.395,324.93 C78.45,325.81 78.505,326.415 78.505,326.69 C78.505,327.35 78.23,327.9 77.79,328.34 C77.35,328.78 76.855,329 76.195,329 C74.38,329 73.5,327.405 73.5,324.215 C73.5,323.995 73.555,323.61 73.775,323.115 C73.94,322.675 74.05,322.4 74.05,322.18 C74.05,321.96 73.995,321.3 73.94,320.2 C73.885,319.155 73.885,318.495 73.885,318.165 C73.885,317.01 74.05,314.15 74.49,309.64 C74.93,304.69 75.315,300.785 75.755,297.925 C75.92,296.825 76.195,295.45 76.525,293.8 C76.635,292.92 76.8,291.6 77.075,289.95 C77.295,288.685 78.01,288.025 79.22,288.025 C80.65,288.025 81.42,288.74 81.42,290.115 C81.42,290.445 81.145,292.26 80.65,295.505 C79.825,300.51 79.22,305.185 78.89,309.585 C84.83,308.1 89.285,306.285 92.145,304.085 C92.75,303.645 93.19,303.37 93.465,303.37 C95.17,303.37 96.05,304.14 96.05,305.625 Z M120.25,316.24 C120.25,316.46 120.14,316.845 119.92,317.45 C119.15,319.76 118.82,321.96 118.82,324.16 C118.82,324.82 118.93,325.81 119.205,327.075 C119.425,328.395 119.59,329.055 119.59,329.22 C119.59,329.77 119.315,330.32 118.875,330.76 C118.38,331.09 117.83,331.31 117.28,331.31 C115.685,331.31 114.75,329.165 114.475,324.985 C111.395,328.065 108.645,329.605 106.17,329.605 C104.575,329.605 103.2,328.945 102.045,327.57 C100.835,326.25 100.285,324.765 100.285,323.06 C100.285,319.87 102.155,316.46 105.95,312.94 C109.58,309.53 112.88,307.77 115.905,307.77 C116.62,307.77 117.335,308.1 118.05,308.65 C118.71,309.2 119.095,309.86 119.095,310.52 C119.095,310.795 119.04,311.07 118.985,311.29 C119.315,312.28 119.535,313.38 119.535,314.645 C119.975,315.195 120.25,315.745 120.25,316.24 Z M115.245,314.645 C115.245,313.325 114.915,312.61 114.255,312.61 C113.21,312.61 111.395,313.875 108.865,316.295 C106.06,318.99 104.685,321.19 104.685,322.95 C104.685,324.325 105.235,324.985 106.39,324.985 C108.04,324.985 109.965,323.775 112.055,321.245 C114.145,318.715 115.245,316.515 115.245,314.645 Z M148.52,316.185 C148.52,319.595 146.155,323.005 141.535,326.47 C137.19,329.715 133.34,331.365 130.04,331.365 C128.005,331.365 126.795,330.485 126.41,328.725 C126.52,327.735 127.015,327.02 127.895,326.47 C127.675,324.49 127.62,322.345 127.62,319.98 C127.62,316.515 127.84,312.335 128.28,307.495 C128.94,301.225 129.82,296.11 130.92,292.15 C131.635,289.4 132.515,288.025 133.615,288.025 C135.155,288.025 135.98,289.015 135.98,290.995 C135.98,292.425 135.595,294.625 134.825,297.595 C134.66,298.145 134.22,298.64 133.56,299.025 C132.9,303.865 132.405,309.64 131.965,316.35 C135.595,311.95 139.06,309.695 142.305,309.695 C144.01,309.695 145.495,310.355 146.705,311.62 C147.915,312.83 148.52,314.37 148.52,316.185 Z M144.23,316.295 C144.23,315.14 143.46,314.535 142.03,314.535 C141.15,314.535 139.885,315.25 138.29,316.625 C136.64,318 135.21,319.485 134.11,321.135 C132.845,322.895 132.24,324.16 132.24,324.875 L132.24,326.305 C133.725,325.865 135.045,325.315 136.2,324.545 C141.535,321.41 144.23,318.66 144.23,316.295 Z M164.36,291.82 C164.36,292.865 163.755,293.635 162.655,294.185 L162.27,294.735 C160.62,301.06 159.795,307.385 159.795,313.71 C159.795,316.35 160.07,321.08 160.62,327.79 C160.62,328.01 160.62,328.34 160.73,328.835 C160.785,329.275 160.84,329.605 160.84,329.77 C160.84,330.045 160.62,330.32 160.29,330.595 C159.905,330.925 159.575,331.09 159.3,331.09 C158.2,331.09 157.265,330.265 156.495,328.67 C155.67,327.075 155.285,325.37 155.285,323.5 C155.285,321.795 155.45,320.585 155.835,319.925 C155.615,316.625 155.505,314.04 155.505,312.17 C155.505,304.91 156.55,297.87 158.695,291.05 C159.3,289.07 159.96,288.025 160.675,288.025 C161.335,288.025 162.105,288.52 162.985,289.4 C163.865,290.39 164.36,291.16 164.36,291.82 Z M190.1,328.01 C190.1,329.77 188.23,330.705 184.545,330.705 C180.365,330.705 177.285,328.835 175.305,325.04 L173.655,325.04 C172.225,325.04 170.85,324.765 169.42,324.16 C167.55,323.39 166.67,322.4 166.67,321.19 C166.67,319.65 167.385,318.88 168.815,318.88 C169.145,318.88 169.695,319.155 170.465,319.705 C171.235,320.255 171.95,320.53 172.72,320.53 L173.985,320.53 C173.82,319.595 173.765,318.825 173.765,318.275 C173.765,315.635 174.425,313.16 175.745,310.85 C177.285,308.155 179.21,306.78 181.575,306.78 C182.95,306.78 184.27,307.44 185.59,308.76 C186.91,310.08 187.57,311.565 187.57,313.105 C187.57,317.175 184.82,320.695 179.32,323.665 C180.64,325.26 182.07,326.03 183.72,326.03 C184.16,326.03 184.875,325.975 185.81,325.865 C186.745,325.755 187.46,325.645 187.9,325.645 C188.45,325.645 189,325.92 189.44,326.36 C189.88,326.91 190.1,327.46 190.1,328.01 Z M183.225,313.325 C183.225,312.885 183.005,312.5 182.675,312.06 C182.235,311.73 181.795,311.51 181.355,311.51 C180.365,311.51 179.595,312.335 179.045,313.985 C178.495,315.36 178.275,316.79 178.275,318.275 L178.275,319.265 C181.575,317.12 183.225,315.14 183.225,313.325 Z M219.03,320.805 C219.03,321.575 218.59,322.62 217.71,323.885 C215.235,327.735 211.55,329.605 206.71,329.605 C202.86,329.605 199.78,328.34 197.58,325.755 C195.27,323.225 194.17,319.925 194.17,315.855 C194.17,313.765 194.885,310.795 196.425,307 C197.745,303.535 199.285,300.565 200.935,298.09 C199.01,299.08 197.91,299.52 197.69,299.52 C196.15,299.52 195.435,298.75 195.435,297.21 C195.435,296.165 196.59,295.065 198.955,293.91 C204.565,291.16 209.625,289.785 214.135,289.785 C215.565,289.785 216.83,290.115 217.93,290.775 C218.645,291.215 219.03,291.93 219.03,292.92 C219.03,294.24 218.26,294.9 216.775,294.9 C216.5,294.9 216.115,294.845 215.565,294.625 C215.015,294.515 214.575,294.405 214.3,294.405 C211.715,294.405 208.58,295.01 204.895,296.22 C205.28,297.21 205.5,297.87 205.5,298.255 C205.5,298.695 205.28,299.3 204.895,300.015 C202.97,303.48 201.375,306.67 200.165,309.53 C204.565,308.32 208.415,307.385 211.715,306.725 C214.3,306.23 216.005,305.955 216.83,305.955 C218.26,305.955 219.03,306.725 219.03,308.265 C219.03,309.365 218.37,310.355 217.05,311.235 C215.73,312.225 214.795,312.665 214.355,312.665 C213.42,312.665 212.595,312.28 211.935,311.51 C206.16,312.775 201.705,313.875 198.625,314.755 C198.515,315.305 198.515,315.855 198.515,316.405 C198.515,319.045 199.23,321.135 200.715,322.675 C202.255,324.27 204.235,325.04 206.765,325.04 C208.58,325.04 210.065,324.655 211.275,323.83 C212.265,323.17 213.31,322.015 214.52,320.31 C215.18,319.21 216.005,318.66 216.94,318.66 C217.38,318.66 217.875,318.935 218.37,319.375 C218.81,319.87 219.03,320.365 219.03,320.805 Z M246.805,311.455 C246.805,312.225 246.42,312.94 245.705,313.545 C244.055,314.975 241.745,316.9 238.775,319.21 C239.82,320.97 240.755,322.565 241.525,324.105 C242.515,326.195 243.065,327.46 243.065,327.9 C243.065,328.45 242.79,329 242.295,329.44 C241.8,329.88 241.305,330.1 240.81,330.1 C239.765,330.1 238.995,329.605 238.555,328.67 C237.565,326.47 236.41,324.325 235.145,322.125 C232.175,324.545 229.7,326.745 227.72,328.835 C227.06,329.495 226.4,329.825 225.85,329.825 C224.31,329.825 223.54,329 223.54,327.46 C223.54,326.58 224.42,325.26 226.235,323.555 C227.61,322.235 229.7,320.42 232.56,318.11 C232.23,317.615 231.735,317.01 231.185,316.295 C230.745,316.185 230.415,315.965 230.14,315.635 C229.59,315.195 228.93,314.315 228.05,312.995 C227.005,311.51 226.51,310.52 226.51,310.08 C226.51,308.375 227.335,307.495 229.095,307.495 C229.755,307.495 230.8,308.32 232.175,309.97 C233.55,311.62 234.87,313.38 236.19,315.25 C237.675,314.04 239.765,312.445 242.46,310.355 C243.45,309.64 244.055,309.255 244.385,309.255 C244.99,309.255 245.54,309.475 246.035,309.915 C246.53,310.355 246.805,310.85 246.805,311.455 Z M270.18,309.695 C270.18,310.355 269.96,310.96 269.575,311.51 C269.135,312.06 268.64,312.335 268.145,312.335 C267.375,312.335 266.66,312.115 266.11,311.565 C265.725,311.565 264.79,311.565 263.25,311.51 C261.71,311.51 260.72,311.455 260.17,311.455 C259.18,315.745 258.575,318.385 258.355,319.43 C257.695,322.51 257.365,325.315 257.255,327.735 C257.805,328.175 258.08,328.78 258.08,329.66 C258.08,330.21 257.805,330.705 257.31,331.2 C256.76,331.64 256.265,331.86 255.715,331.86 C253.9,331.86 253.02,330.32 253.02,327.35 C253.02,325.7 253.35,323.06 254.065,319.485 L255.715,311.565 C254.01,311.565 253.185,310.795 253.185,309.2 C253.185,308.21 253.515,307.55 254.175,307.22 C254.615,307 255.44,306.835 256.76,306.835 C258.19,301.005 259.4,296.495 260.39,293.195 C260.72,292.04 261.38,291.435 262.37,291.435 C263.8,291.435 264.57,292.26 264.735,293.91 C264.405,295.065 263.965,296.385 263.47,297.925 C262.81,300.18 262.095,303.095 261.325,306.725 C261.71,306.725 263.085,306.78 265.395,306.835 C268.585,307 270.18,307.935 270.18,309.695 Z M293.39,310.135 C293.39,310.795 292.84,311.455 291.74,312.005 C290.64,312.665 289.65,312.94 288.77,312.94 C288.715,312.94 288.385,312.83 287.725,312.61 C283.27,314.81 280.52,319.265 279.53,325.975 C279.255,327.735 279.035,328.89 278.87,329.44 C278.54,330.43 277.99,330.925 277.33,330.925 C276.67,330.925 276.01,330.54 275.46,329.88 C274.91,329.165 274.69,328.395 274.69,327.46 C274.69,327.295 274.8,326.58 275.13,325.26 C275.405,324.05 275.57,322.73 275.57,321.245 C275.57,319.925 275.405,318.165 275.185,316.02 C274.195,314.645 273.7,312.72 273.7,310.3 C273.7,309.75 273.865,309.2 274.195,308.65 C274.47,308.21 274.855,307.935 275.295,307.935 C276.34,307.935 277.165,308.54 277.77,309.64 C278.21,310.63 278.595,312.28 278.925,314.59 C282.28,309.53 286.13,307 290.42,307 C291.135,307 291.795,307.33 292.455,307.99 C293.06,308.65 293.39,309.365 293.39,310.135 Z M315.5,316.24 C315.5,316.46 315.39,316.845 315.17,317.45 C314.4,319.76 314.07,321.96 314.07,324.16 C314.07,324.82 314.18,325.81 314.455,327.075 C314.675,328.395 314.84,329.055 314.84,329.22 C314.84,329.77 314.565,330.32 314.125,330.76 C313.63,331.09 313.08,331.31 312.53,331.31 C310.935,331.31 310,329.165 309.725,324.985 C306.645,328.065 303.895,329.605 301.42,329.605 C299.825,329.605 298.45,328.945 297.295,327.57 C296.085,326.25 295.535,324.765 295.535,323.06 C295.535,319.87 297.405,316.46 301.2,312.94 C304.83,309.53 308.13,307.77 311.155,307.77 C311.87,307.77 312.585,308.1 313.3,308.65 C313.96,309.2 314.345,309.86 314.345,310.52 C314.345,310.795 314.29,311.07 314.235,311.29 C314.565,312.28 314.785,313.38 314.785,314.645 C315.225,315.195 315.5,315.745 315.5,316.24 Z M310.495,314.645 C310.495,313.325 310.165,312.61 309.505,312.61 C308.46,312.61 306.645,313.875 304.115,316.295 C301.31,318.99 299.935,321.19 299.935,322.95 C299.935,324.325 300.485,324.985 301.64,324.985 C303.29,324.985 305.215,323.775 307.305,321.245 C309.395,318.715 310.495,316.515 310.495,314.645 Z" id="kableExtra-img" fill="#FFFFFF"></path>
<path d="M58.6374408,137 L326.362559,137" id="Line" stroke-opacity="0.56419837" stroke="#FFFFFF" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1"></path>
<path d="M58.6374408,174 L326.362559,174" id="Line" stroke-opacity="0.56419837" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1"></path>
<path d="M58.6374408,267 L326.362559,267" id="Line" stroke-opacity="0.56419837" stroke="#FFFFFF" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="1"></path>