mirror of
https://github.com/itflow-org/itflow
synced 2026-12-02 00:59:03 +00:00
Documents in Markdown: a document can be written in Markdown with Write and Preview or in the rich text editor and switched either way, pictures pasted or dropped into the Markdown are kept as files, New Document starts in the way last used, Import Markdown Files beside Upload makes a document from each .md file, a Markdown button beside PDF downloads a document as a .md file, and Markdown pasted into a document's rich text editor goes in as formatting; versions, restore, copy and the API carry the Markdown, and the API's document create and update no longer escape values twice; database 4.2.3 adds documents.document_markdown and document_versions.document_version_markdown, and league/commonmark 2.10 and league/html-to-markdown 5.2 are added to libs/vendor through composer; 26.12.3 changelog entries
This commit is contained in:
@@ -5468,6 +5468,72 @@ tr:hover .itflow-files-rename,
|
||||
border-radius: var(--bs-border-radius-lg);
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
/* A document written in Markdown, as it shows (functions/markdown.php markdownToHtml()) */
|
||||
.itflow-markdown img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
.itflow-markdown pre {
|
||||
padding: .75rem 1rem;
|
||||
border: 1px solid var(--bs-border-color);
|
||||
border-radius: var(--bs-border-radius);
|
||||
background-color: var(--bs-tertiary-bg);
|
||||
white-space: pre;
|
||||
overflow-x: auto;
|
||||
overflow-wrap: normal;
|
||||
}
|
||||
.itflow-markdown :not(pre) > code {
|
||||
padding: .1rem .3rem;
|
||||
border-radius: .25rem;
|
||||
background-color: var(--bs-tertiary-bg);
|
||||
color: var(--bs-emphasis-color);
|
||||
}
|
||||
.itflow-markdown blockquote {
|
||||
margin-left: 0;
|
||||
padding: .25rem 0 .25rem 1rem;
|
||||
border-left: .25rem solid var(--bs-border-color);
|
||||
color: var(--bs-secondary-color);
|
||||
}
|
||||
.itflow-markdown blockquote > :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.itflow-markdown li:has(> .itflow-task) {
|
||||
list-style: none;
|
||||
margin-left: -1.1rem;
|
||||
}
|
||||
.itflow-task {
|
||||
display: inline-block;
|
||||
width: 1.1rem;
|
||||
color: var(--bs-secondary-color);
|
||||
}
|
||||
.itflow-task.is-done {
|
||||
color: var(--bs-success);
|
||||
}
|
||||
/* ...and as it is written (agent/modals/document/document_form.php, js/document_markdown.js) */
|
||||
.itflow-markdown-tabs .nav-link {
|
||||
padding: .35rem .8rem;
|
||||
font-size: .875rem;
|
||||
}
|
||||
.itflow-markdown-input {
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
border-top: 0;
|
||||
font-size: .875rem;
|
||||
line-height: 1.5;
|
||||
tab-size: 4;
|
||||
resize: vertical;
|
||||
}
|
||||
.itflow-markdown-preview {
|
||||
padding: 1rem 1.25rem;
|
||||
overflow: auto;
|
||||
}
|
||||
.itflow-markdown-help td {
|
||||
padding: .3rem .6rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
.itflow-markdown-help td:nth-child(even) {
|
||||
color: var(--bs-secondary-color);
|
||||
}
|
||||
/* A client at a glance, on hovering its name (js/client_card.js) */
|
||||
.itflow-client-card-popover {
|
||||
--bs-popover-max-width: 20rem;
|
||||
|
||||
Reference in New Issue
Block a user