I'm writing lecture notes in Hebrew using lyx. I use the framed package to have my theorems inside a nice gray box. It all seemed to work fine, until I noticed a strange behavior when I try to put a description list inside.
I tried to create a MWE in English for you, but there was no such problem, so apparantly it has something to do with Hebrew. Here's how it looks, in comparison:

Both use the exact same code in the document preamble:
\usepackage{xcolor}
\usepackage{framed}
\usepackage{amsthm}
\definecolor{shadecolor}{rgb}{.8, .8, .8}
\newenvironment{myframe}{
\def\FrameCommand{\colorbox{shadecolor}}%
\MakeFramed {\advance\hsize-\width }}
{\endMakeFramed}
\newtheorem{newThm}[thm]{\bfseries Theorem}
\renewenvironment{thm}
{\begin{myframe}\begin{newThm}\begin{normalfont}}
{\end{normalfont}\end{newThm}\end{myframe}}
So I don't know how to locate the problem. If anyone has any ideas I'd be happy to hear. Also, sorry if this the question is not written properly, I'm new here... Thanks!
Edit: Here's a full Latex code of my MWE, generated by Lyx. I'm sorry that it turned out quite long, it's the best I could do!
\documentclass[a4paper,english,hebrew]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{fontspec}
\setmainfont[Mapping=tex-text]{David}
\setsansfont[Mapping=tex-text]{Arial}
\setmonofont{Miriam Fixed}
\usepackage{fancyhdr}
\pagestyle{fancy}
\setlength{\parskip}{\medskipamount}
\setlength{\parindent}{0pt}
\makeatletter
% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
% Textclass specific LaTeX commands.
\theoremstyle{plain}
\newtheorem{thm}{\protect\theoremname}
@ifundefined{date}{}{\date{}}
% This is the preamble!
\usepackage{xcolor}
\usepackage{framed}
\usepackage{amsthm}
\definecolor{shadecolor}{rgb}{.8, .8, .8}
\newenvironment{myframe}{
\def\FrameCommand{\colorbox{shadecolor}}%
\MakeFramed {\advance\hsize-\width }}
{\endMakeFramed}
\newtheorem{newThm}[thm]{\bfseries Theorem}
\renewenvironment{thm}
{\begin{myframe}\begin{newThm}\begin{normalfont}}
{\end{normalfont}\end{newThm}\end{myframe}}
%This is the end of the preamble!
\AtBeginDocument{
\def\labelitemi{\normalsize(\bullet)}
}
\makeatother
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\addto\captionsenglish{\renewcommand{\theoremname}{Theorem}}
\addto\captionshebrew{\renewcommand{\theoremname}{משפט}}
\providecommand{\theoremname}{משפט}
\begin{document}
\begin{thm}
לורם איפסום:
\begin{enumerate}
\item דולור סיט אמט.
\item דולור סיט אמט.
\end{enumerate}
\end{thm}
\begin{thm}
לורם איפסום:
\begin{description}
\item [{דולור.}] סיט אמט.
\item [{דולור.}] סיט אמט.
\end{description}
\end{thm}
\end{document}

