Skip to content

live markdown shortcut transform history policy 설계 #84

Description

@developer-1px

배경

#14 조사에서 current editor에는 live markdown shortcut transform이 없음을 확인했다. 미래에 typing 중 markdown-like input을 heading/mark/list 같은 구조로 transform하면, triggering text input과 transform을 같은 undo unit으로 둘지 별도 undo unit으로 둘지 명시해야 한다.

근거

  • docs/editor-composition-history-policy-audit.md
  • Lexical #8365는 markdown shortcut transform이 triggering text input과 merge되어 undo가 input까지 지우는 문제를 고치기 위해 transform 성공 시 별도 history push tag를 추가했다.

해야 할 일

  • Live markdown shortcut이 제품 범위인지 결정한다.
  • 추가한다면 transform origin을 history grouping policy에 노출한다.
  • Trigger text만 되돌릴지, transform만 되돌릴지, 둘을 한 unit으로 둘지 fixture로 고정한다.

완료 기준

  • live markdown shortcut의 undo grouping contract가 문서화되어 있다.
  • 구현 시 trigger input과 transform undo behavior를 검증하는 test가 있다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    아키텍처모듈 경계, public API, internal 구조테스트테스트 하네스, 브라우저 자동화, fixture 한계히스토리undo, redo, history 병합 동작

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions