Skip to content

Add documentation that markdown is not rendered when including variables#2258

Closed
yucheng11122017 wants to merge 2 commits into
MarkBind:masterfrom
yucheng11122017:addDocumentationOnIncludeVariable
Closed

Add documentation that markdown is not rendered when including variables#2258
yucheng11122017 wants to merge 2 commits into
MarkBind:masterfrom
yucheng11122017:addDocumentationOnIncludeVariable

Conversation

@yucheng11122017

Copy link
Copy Markdown
Contributor

What is the purpose of this pull request?

  • Documentation update
  • Bug fix
  • Feature addition or enhancement
  • Code maintenance
  • DevOps
  • Improve developer experience
  • Others, please explain:

Related to #2211

Overview of changes:
Adding documentation about the bug where markdown is not rendered when including variable
Included it in a panel in includes so users don't have to view it if not relevant

Anything you'd like to highlight/discuss:
I did not include the reason for this error because its a bit complicated to explain and users wouldn't need to understand it.

Testing instructions:

Proposed commit message: (wrap lines at 72 characters)
Document bug where including variables does not render markdown


Checklist: ☑️

  • Updated the documentation for feature additions and enhancements
  • Added tests for bug fixes or features
  • Linked all related issues
  • No unrelated changes

@yucheng11122017 yucheng11122017 requested a review from lhw-1 April 2, 2023 06:31
</span>
</include>

<panel header="Markdown not rendered when including a variable">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The heading should let the reader decide quickly between expanding and reading the panel or skipping it. This one is hard to decide (is this a tip, advanced technique, caveat, etc.?), and the reader will have to expand the panel to figure out what it's about.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm how about "If trying to include a variable with markdown" or something like that?

Code that uses include fragment:
```html
<include src="index.md#fragment-id" />
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something is not right here. I don't think variables are meant to be used as include fragments in the first place. Although it would be nice 'trick' to be able to do so, I don't think it is an advertised feature. Variable values are inserted using the {{ v_name }} instead. Does our UG say variables can be included in this way?

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see I see. In that case, I will close this PR and the corresponding issue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants