Filter outline markers in writer, add min-height to preview dialog
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<link rel="stylesheet" href="theme-modern.css">
|
<link rel="stylesheet" href="theme-modern.css">
|
||||||
<style>
|
<style>
|
||||||
.selected-count { color: var(--color-text-secondary); font-size: var(--font-size-body); margin-left: auto; }
|
.selected-count { color: var(--color-text-secondary); font-size: var(--font-size-body); margin-left: auto; }
|
||||||
.preview-dialog-custom .el-dialog__body { overflow-y: auto; max-height: calc(90vh - 120px); padding: 16px 20px; }
|
.preview-dialog-custom .el-dialog__body { overflow-y: auto; max-height: calc(90vh - 120px); min-height: 400px; padding: 16px 20px; }
|
||||||
.preview-dialog-custom .preview-body { max-height: calc(90vh - 180px); min-height: 300px; overflow: auto; }
|
.preview-dialog-custom .preview-body { max-height: calc(90vh - 180px); min-height: 300px; overflow: auto; }
|
||||||
.preview-dialog-custom .preview-body img { max-width: 100%; }
|
.preview-dialog-custom .preview-body img { max-width: 100%; }
|
||||||
.topic-card-list { display: none; }
|
.topic-card-list { display: none; }
|
||||||
|
|||||||
@@ -143,6 +143,8 @@ class Writer:
|
|||||||
return True
|
return True
|
||||||
if stripped.startswith('*大纲'):
|
if stripped.startswith('*大纲'):
|
||||||
return True
|
return True
|
||||||
|
if re.match(r'^\*{0,3}【[^】]*】\*{0,3}\s*$', stripped):
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def _is_bullet_only(self, text: str) -> bool:
|
def _is_bullet_only(self, text: str) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user