You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2020/06/10 06:10:35 UTC
[pdfbox-docs] branch master updated (d64f4be -> 27caaa7)
This is an automated email from the ASF dual-hosted git repository.
msahyoun pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git.
from d64f4be PDFBOX-4848: enable handling of static assets with Eleventy
new 2aec28e PDFBOX-4848: enable generation of anchor tags in headings
new 27caaa7 PDFBOX-4848: allow HTML markup in markdown files, fix markdown indent
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.eleventy.js | 10 ++++++++++
content/index.md | 6 ++----
package.json | 1 +
3 files changed, 13 insertions(+), 4 deletions(-)
[pdfbox-docs] 02/02: PDFBOX-4848: allow HTML markup in markdown
files, fix markdown indent
Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
msahyoun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git
commit 27caaa7099fdb263b7d0f6b1ed348e17ad64f878
Author: Maruan Sahyoun <sa...@fileaffairs.de>
AuthorDate: Wed Jun 10 08:09:42 2020 +0200
PDFBOX-4848: allow HTML markup in markdown files, fix markdown indent
---
.eleventy.js | 5 ++++-
content/index.md | 6 ++----
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.eleventy.js b/.eleventy.js
index 60afdd0..e75d848 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -4,7 +4,10 @@ module.exports = function(eleventyConfig) {
// needs the markdown-it-anchor plugin
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
- const markdownLib = markdownIt().use(markdownItAnchor);
+ const options = {
+ html: true
+ };
+ const markdownLib = markdownIt(options).use(markdownItAnchor);
eleventyConfig.setLibrary("md", markdownLib);
// copy static files to output
diff --git a/content/index.md b/content/index.md
index 0c2970d..5ce6fc9 100644
--- a/content/index.md
+++ b/content/index.md
@@ -23,10 +23,8 @@ title: A Java PDF Library
<p class="lead">The Apache PDFBox<sup>®</sup> library is an open source Java tool for working with
PDF documents. This project allows creation of new PDF documents, manipulation of existing
- documents and the ability to extract content from documents.
-
- Apache PDFBox also includes several command-line utilities.
- Apache PDFBox is published under the Apache License v2.0.</p>
+ documents and the ability to extract content from documents. Apache PDFBox also includes several
+ command-line utilities. Apache PDFBox is published under the Apache License v2.0.</p>
{% for post in site.categories.news limit:1 %}
<h2>{{ post.title }}<br><small>{{ post.date | date: "%Y-%m-%d"}}</small></h2>
[pdfbox-docs] 01/02: PDFBOX-4848: enable generation of anchor tags
in headings
Posted by ms...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
msahyoun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git
commit 2aec28e89980bb50173a357d8cff83eb69792aec
Author: Maruan Sahyoun <sa...@fileaffairs.de>
AuthorDate: Wed Jun 10 08:05:12 2020 +0200
PDFBOX-4848: enable generation of anchor tags in headings
---
.eleventy.js | 7 +++++++
package.json | 1 +
2 files changed, 8 insertions(+)
diff --git a/.eleventy.js b/.eleventy.js
index 9d36c8c..60afdd0 100644
--- a/.eleventy.js
+++ b/.eleventy.js
@@ -1,5 +1,12 @@
module.exports = function(eleventyConfig) {
+ // enable generation of header anchor tags
+ // needs the markdown-it-anchor plugin
+ const markdownIt = require("markdown-it");
+ const markdownItAnchor = require("markdown-it-anchor");
+ const markdownLib = markdownIt().use(markdownItAnchor);
+ eleventyConfig.setLibrary("md", markdownLib);
+
// copy static files to output
eleventyConfig.addPassthroughCopy("./content/bootstrap");
eleventyConfig.addPassthroughCopy("./content/css/*.css");
diff --git a/package.json b/package.json
index 3ab48fc..7e91046 100644
--- a/package.json
+++ b/package.json
@@ -17,6 +17,7 @@
"devDependencies": {
"@11ty/eleventy": "^0.11.0",
"html-validate": "^2.23.0",
+ "markdown-it-anchor": "^5.3.0",
"npm-run-all": "^4.1.5"
}
}