markdown.config.js 2.3 KB

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