I'm looking for a way to add titles in the markdown toc.yml files. Could anyone help?
In normal links I would use this way:
HTML
I am a link
Markdown Normal Link
[I am a link] (# mylink "my title")
Makdown Link Toc.yml
- name: I am a link
href: #mylink
title: ???
How to add a title?
According to DocFX, there is no title attribute in Table-Of-Content files. You should include the textual information in the name of the given link.
An alternative approach would be using Markdown for your TOC, which, as you mentioned, supports titling.
Related
I am creating a website with quarto (using RStudio). I want to have links between pages on my site, which usually works as described here in the quarto documentation. However, I have saved the .qmd files for my pages within separate subfolders within the project directory as shown in this example _quarto.yml:
website:
title: "Main Title"
navbar:
title: "Navbar Title"
left:
- text: Pages
menu:
- text: Page A
href: folderA/pageA.qmd
- text: Page B
href: folderB/pageB.qmd
When trying to add [link](folderB/pageB.qmd) anywhere within the pageA.qmd document, it incorrectly creates the link as folderA/folderB/pageB.qmd which obviously does not work.
How do I correctly assign links between pages in this setting?
It's a bit tedious but you should be able to use relative paths, i.e. .. to move to previous directory.
So in your case that would be [Link](../folderB/pageB.qmd). Not a great solution but as long as your directory structure stays the same, it should work.
If you later on find yourself changing the structure you can use aliases to keep the old links alive.
I'm using Mermaid Markdown to draw flowcharts for my projects, then export the generated pages as PDF to make them viewable for external people.
On this link, I have seen that it was possible to put URL like this :
graph LR;
A-->B;
click A callback "Tooltip for a callback"
click B "http://www.github.com" "This is a tooltip for a link"
This is an external URL, but I would like something that would point to an anchor (a title / subheading) in the same page. Is there a way to do that ?
An example of URLs that I would like would be generated in pure Markdown as this (but I would like to use them in the Mermaid flowchart) :
[Text](#subheading-title)
I'm using Mermaid flowchart inside Vuepress with vuepress-plugin-mermaidjs. Got it working inside a .md file like this:
# Title
## section1
text inside section 1
## section2
text inside section
```mermaid
graph LR;
A-->B;
click A "./#section1"
I want to write
http://www.foo.com/
and get a link with the URL as the text (e.g., in HTML output). I do not want to write
[http://www.foo.com/](http://www.foo.com/)
Is it possible?
Yes, here is the relevant section of the documentation:
AUTOMATIC LINKS
Markdown supports a shortcut style for creating “automatic” links for URLs and email addresses: simply surround the URL or email address with angle brackets. What this means is that if you want to show the actual text of a URL or email address, and also have it be a clickable link, you can do this:
<http://example.com/>
Markdown will turn this into:
http://example.com/
I find this works with my IDE nicely, wrapping the link in an <a> tag:
<a>http://example.com/</a>
I am using TinyMCE WYSIWYG editor to create posts in my custom forum. I am using the bbCode plugin. I want to add a quote post feature. I need to add [quote id=123]Some Original Message[/quote] to the editor without it being parsed.
I tried putting that string inside the textarea tags, but it just shows up as "Some Original Message".
I'm setting up a site on Orchard CMS and I want to put links into the description of each blog. Currently it just has a space for text in the Description but I need rich text. Can I add a rich text part to the Blog content type or something else? Thanks.
Just add the Body part to the blog content type, set-up placement for it and that should be it.
You might try overriding the view that outputs the description to the front end to use #Html.Raw(Model.Description), and just type in some HTML into the description field. I'm not sure if it will accept the HTML tags in the editor without modifications though.
Actually, if the above doesn't work, adding a body part should, and then override the display template to display the description from the body part.
I can't comment, I don't have enough reputation, FWIW in Orchard 1.8 (current) you only need to edit the content definition for type 'blog' to add the 'Body' part, the default placement already has it.