markdown.config.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /**
  2. * markdown配置
  3. */
  4. import HaloConfig from '@/config/halo.config.js'
  5. export default {
  6. domain: HaloConfig.apiUrl,
  7. tagStyle: {
  8. table: `
  9. table-layout: fixed;
  10. border-collapse:collapse;
  11. margin-bottom: 18px;
  12. overflow: hidden;
  13. font-size: 13px;
  14. color: var(--routine);
  15. background: #f2f6fc;
  16. border: 1px solid #dcdcdc;
  17. border-radius: 4px;
  18. `,
  19. th: `
  20. padding: 8px;
  21. border-right: 1px solid var(--classE);
  22. border-bottom: 1px solid var(--classE);
  23. `,
  24. td: `
  25. padding: 8px;
  26. border-right: 1px solid var(--classE);
  27. border-bottom: 1px solid var(--classE);
  28. `,
  29. blockquote: `
  30. padding: 8px 15px;
  31. color: #606266;
  32. background: #f2f6fc;
  33. border-left: 5px solid #50bfff;
  34. border-radius: 4px;
  35. line-height: 26px;
  36. margin-bottom: 18px;
  37. `,
  38. ul: 'padding-left: 15px;line-height: 1.85;',
  39. ol: 'padding-left: 15px;line-height: 1.85;',
  40. li: 'margin-bottom: 12px;line-height: 1.85;',
  41. h1: `
  42. margin: 30px 0 20px;
  43. color: var(--main);
  44. line-height: 24px;
  45. position: relative;
  46. font-size:1.25em;
  47. `,
  48. h2: `
  49. color: var(--main);
  50. line-height: 24px;
  51. position: relative;
  52. margin: 22px 0 16px;
  53. font-size: 1.2em;
  54. `,
  55. h3: `
  56. color: var(--main);
  57. line-height: 24px;
  58. position: relative;
  59. margin: 26px 0 18px;
  60. font-size: 1.3em;
  61. `,
  62. h4: `
  63. color: var(--main);
  64. line-height: 24px;
  65. margin-bottom: 18px;
  66. position: relative;
  67. font-size: 1.18em;
  68. `,
  69. h5: `
  70. color: var(--main);
  71. line-height: 24px;
  72. margin-bottom: 14px;
  73. position: relative;
  74. font-size: 1em;
  75. `,
  76. h6: `
  77. color: #303133;
  78. line-height: 24px;
  79. margin-bottom: 14px;
  80. position: relative;
  81. font-size: 1em;
  82. `,
  83. p: `
  84. line-height: 1.65;
  85. margin-bottom: 14px;
  86. font-size: 15px;
  87. `,
  88. 'code': ` `,
  89. strong: 'font-weight: 700;color: rgb(248, 57, 41);',
  90. video: 'width: 100%',
  91. },
  92. containStyle: 'font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, "PingFang SC", Cambria, Cochin, Georgia, Times, "Times New Roman", serif;padding:12px;font-size: 16px;color: #606266;word-spacing: 0.8px;letter-spacing: 0.8px;border-radius: 6px;background-color:#FFFFFF;',
  93. loadingGif: HaloConfig.loadingGifUrl,
  94. emptyGif: HaloConfig.loadingEmptyUrl,
  95. }