# 수식편집기 mathml 변환 오류

**URL:** <https://forum.developer.hancom.com/t/mathml/2368>\
**Category:** 한글 오토메이션\
**Created:** [3월 30, 2025, 7:16오후 UTC](https://forum.developer.hancom.com/t/mathml/2368 "2025-03-30T19:16:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![user24](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@user24](https://forum.developer.hancom.com/u/user24)\
**Post date:** [3월 30, 2025, 7:16오후 UTC](https://forum.developer.hancom.com/t/mathml/2368/1 "2025-03-30T19:16:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/4/436eacb75286f1811e4a8f31a8a281c0fb4ba807.png)

수식 편집기에서 mathml로 내보내기 할때 정확하게 변환하지 못하는 오류가 있습니다.  
이미지와 같은 수식을 mathml로 저장하면  
limx→-∞tan-1x=-π2  
이렇게 저장하게 되는데 이는 msup 내부에 munder가 들어가는 오류가 발생합니다.  
이 파일을 다루면 파이썬으로 다루려고 하니 XMLSyntaxError: Element msup content does not follow the DTD와 같은 오류메시지가 발생합니다.  
혹시나 하여 저장했던 mathml을 수식 편집기에서 다시 불러와봤는데 역시나 깨져서 나옵니다.

이처럼 수식편집기에서 mathml로변환할때 문법오류가 있는 것 같은데

다음 문제 해결 가능한가요?

---

<div class="post-metadata">

**Author:** ![user24](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@user24](https://forum.developer.hancom.com/u/user24)\
**Post date:** [3월 30, 2025, 7:21오후 UTC](https://forum.developer.hancom.com/t/mathml/2368/2 "2025-03-30T19:21:02Z")

</div>

추출된 mathml 내용은 이런 식입니다  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/hancom_dev_forum/original/2X/0/0b0ed18e79f0adf264a5a66b160d16666d95fdb1.png)  
이렇게 저장하게 되는데 이는 msup 내부에 munder가 들어가는 오류가 발생합니다.

---

<div class="post-metadata">

**Author:** ![wj.jung](https://avatars.discourse-cdn.com/v4/letter/w/fbc32d/32.png) [@wj.jung](https://forum.developer.hancom.com/u/wj.jung)\
**Post date:** [3월 31, 2025, 12:13오전 UTC](https://forum.developer.hancom.com/t/mathml/2368/3 "2025-03-31T00:13:25Z")

</div>

안녕하세요.  
말씀하신 문제는 mathml필터의 버그로 해당 문제를 우회하기 어려워보입니다😭

담당자에게 전달하여 수정을 요청하겠습니다.

---

<div class="post-metadata">

**Author:** ![user24](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@user24](https://forum.developer.hancom.com/u/user24)\
**Post date:** [3월 31, 2025, 5:10오전 UTC](https://forum.developer.hancom.com/t/mathml/2368/4 "2025-03-31T05:10:38Z")

</div>

수식관련 작업을 진행중인데 해당 버그가 고쳐지려면 오래걸릴까요?

---

<div class="post-metadata">

**Author:** ![jhbang](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@jhbang](https://forum.developer.hancom.com/u/jhbang)\
**Post date:** [4월 1, 2025, 12:01오전 UTC](https://forum.developer.hancom.com/t/mathml/2368/5 "2025-04-01T00:01:06Z")

</div>

해당 증상은 담당 부서에 전달하겠습니다.  
패치 여부/일정은 확정해서 저희가 말씀드릴 수는 없을 것 같네요. 😭

감사합니다.
