mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
fixed all rendering differences
This commit is contained in:
parent
9f6a7b79ac
commit
275dbe9b2e
@ -287,6 +287,7 @@ export const cherryPick = function (
|
||||
targetId = common.sanitizeText(targetId, getConfig());
|
||||
const config = getConfig();
|
||||
tags = tags?.map((tag) => common.sanitizeText(tag, config));
|
||||
|
||||
parentCommitId = common.sanitizeText(parentCommitId, getConfig());
|
||||
|
||||
if (!sourceId || !state.records.commits.has(sourceId)) {
|
||||
@ -383,6 +384,7 @@ export const cherryPick = function (
|
||||
}`,
|
||||
],
|
||||
};
|
||||
|
||||
state.records.head = commit;
|
||||
state.records.commits.set(commit.id, commit);
|
||||
state.records.branches.set(state.records.currBranch, commit.id);
|
||||
|
@ -76,7 +76,7 @@ const parseCheckout = (checkout: CheckoutAst) => {
|
||||
|
||||
const parseCherryPicking = (cherryPicking: CherryPickingAst) => {
|
||||
const id = cherryPicking.id;
|
||||
const tags = cherryPicking.tags ?? undefined;
|
||||
const tags = cherryPicking.tags?.length === 0 ? undefined : cherryPicking.tags;
|
||||
const parent = cherryPicking.parent;
|
||||
db.cherryPick(id, '', tags, parent);
|
||||
};
|
||||
|
@ -65,7 +65,7 @@ Merge:
|
||||
(
|
||||
'id:' id=STRING
|
||||
|'tag:' tags+=STRING
|
||||
|'type:' name=('NORMAL' | 'REVERSE' | 'HIGHLIGHT')
|
||||
|'type:' type=('NORMAL' | 'REVERSE' | 'HIGHLIGHT')
|
||||
)* EOL;
|
||||
|
||||
Checkout:
|
||||
@ -76,7 +76,7 @@ CherryPicking:
|
||||
(
|
||||
'id:' id=STRING
|
||||
|'tag:' tags+=STRING
|
||||
|'parent:' id=STRING
|
||||
|'parent:' parent=STRING
|
||||
)* EOL;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user