mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 16:14:41 +00:00
content: Consolidate configuration documentation
This commit is contained in:
1 parent
727ef6f665
commit
b6cae5cbc6
911 files changed
+10902
-11171
No files matched your search
@@ -3,12 +3,13 @@ title: transform.PortableText
|
||||
description: Converts Portable Text to Markdown.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/page/RenderString
|
||||
- methods/page/RenderShortcodes
|
||||
returnType: string
|
||||
signatures: [transform.PortableText MAP]
|
||||
params:
|
||||
functions_and_methods:
|
||||
related:
|
||||
- methods/page/RenderString
|
||||
- methods/page/RenderShortcodes
|
||||
returnType: string
|
||||
signatures: [transform.PortableText MAP]
|
||||
---
|
||||
|
||||
{{< new-in "0.145.0" />}}
|
||||
@@ -17,9 +18,9 @@ action:
|
||||
|
||||
## Types supported
|
||||
|
||||
* `block` and `span`
|
||||
* `image`. Note that the image handling is currently very simple; we link to the `asset.url` using `asset.altText` as the image alt text and `asset.title` as the title. For more fine grained control you may want to process the images in a [image render hook](/render-hooks/images/).
|
||||
* `code` (see the [code-input](https://www.sanity.io/plugins/code-input) plugin). Code will be rendered as [fenced code blocks](/contribute/documentation/#fenced-code-blocks) with any filename provided passed on as a markdown attribute.
|
||||
- `block` and `span`
|
||||
- `image`. Note that the image handling is currently very simple; we link to the `asset.url` using `asset.altText` as the image alt text and `asset.title` as the title. For more fine grained control you may want to process the images in a [image render hook](/render-hooks/images/).
|
||||
- `code` (see the [code-input](https://www.sanity.io/plugins/code-input) plugin). Code will be rendered as [fenced code blocks](/contribute/documentation/#fenced-code-blocks) with any file name provided passed on as a markdown attribute.
|
||||
|
||||
{{< note >}}
|
||||
Since the Portable Text gets converted to Markdown before it gets passed to Hugo, rendering of links, headings, images and code blocks can be controlled with [Render Hooks](https://gohugo.io/render-hooks/).
|
||||
|
||||
Reference in new issue
Block a user