Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explain that paragraph only containing one command may not have ps #67

Open
tlienart opened this issue Jan 17, 2022 · 0 comments
Open
Labels
documentation Improvements or additions to documentation paragraphs

Comments

@tlienart
Copy link
Owner

E.g.

\newcommand{\foo}{abc}

ABC

\foo

DEF

will give

<p>ABC</p>

abc

<p>DEF</p>

because Franklin doesn't know whether \foo inserts text or not and so, by default, considers it might be a no-paragraph case (e.g. \toc).

Can use the command \par in the definition so

s = raw"""
       \newcommand{\foo}{\par{abc}}

       ABC

       \foo

       DEF
       """

will lead to

<p>ABC</p>
<p>abc</p>
<p>DEF</p>
@tlienart tlienart added documentation Improvements or additions to documentation and removed docs labels Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation paragraphs
Projects
None yet
Development

No branches or pull requests

1 participant