text mode #1971
amitu
started this conversation in
Ideas & RFCs
text mode
#1971
Replies: 1 comment
-
Final (?) Decision On ThisEvery time we encounter text after a section that does not take body, the text is converted to text node using the If the section takes body, and no children, it will not have |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Most documents are texts. Some of the document is used to represent user layout etc, but most is text. What if the outer document in fastn (ftd file) is text block. We also create text components, which only take single text label. And finally we create some special text roles, like heading, link, bold etc, with markdown like syntax.
We are extending markdown with
--syntax for "block" / UI stuff.Markdown Role Override
Is equivalent to:
ftd.markdown-rolesis a module that defines a bunch of markdown related functions, eg.h1, which will get called withfooas caption input in this case.Whenever we are in text mode, the immediate outer container can define the "markdown-roles" module to use to render the markdown roles found in the text.
Most documents would not be such "naked markdown files":
But:
Default To Text
Document starts in text mode, and after any section, if the section does not accept a body, we go back to text mode.
Beta Was this translation helpful? Give feedback.
All reactions